Add a label

agg_label(text, x, y, panel, colour = "black", size = 20, color)

Arguments

text

The text to display on your plot

x

The x coordinate of the center of your label

y

The y coordinate of the center of your label

panel

Which panel should the label be placed on? You can specify a vector of panels (e.g. `panel = c("1","3")`) to apply the label to multiple panels at once.

colour

The colour of your text

size

Font size (default 20)

color

(Deprecated; use colour instead) The colour of your text

See also

vignette("plotting-options", package = "arphit") for a detailed description of all the plotting options

Examples

arphitgg() + agg_label("Here is a label", 2003, 0.2, "1", RBA["Red3"])
#> dev.new(): using pdf(file="Rplots117.pdf")