agg_label: Add a label

Description Usage Arguments See Also Examples

View source: R/gg-constructors.R

Description

Add a label

Usage

1
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

1
arphitgg() + agg_label("Here is a label", 2003, 0.2, "1", RBA["Red3"])

angusmoore/arphit documentation built on Feb. 15, 2021, 9:40 a.m.