This internal function adds a custom text annotation to a ggplot object, positioning it at a specified proportion of the plot's x and y axis ranges. The default annotation is used to indicate epidemic control.
Arguments
- p
A ggplot2 plot object to which the annotation will be added.
- annotation_label
A character string specifying the text to annotate the plot with. The default value is "<– Epidemic control".
- annotation_proportion
A numeric value between 0 and 1 indicating the position of the annotation relative to the axis ranges. Default is 0.9, placing the annotation close to the top-right of the plot.