Add an arrow

agg_arrow(tail.x, tail.y, head.x, head.y, colour = "black", panel,
  lwd = 1, color)

Arguments

tail.x

The x coordinate of the arrow tail

tail.y

The y coordinate of the arrow tail

head.x

The x coordinate of the arrow head

head.y

The y coordinate of the arrow head

colour

The colour of the arrow

panel

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

lwd

(Optional, default 1) The linewidth of the arrow

color

(Deprecated; use colour instead) The colour of the arrow

See also

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

Examples

arphitgg(data) + agg_arrow(tail.x = 2002, tail.y = 0, head.x = 2003, head.y = 1, color = RBA["Blue1"], panel = "1")
#> Warning: color is deprecated; use colour instead
#> dev.new(): using pdf(file="Rplots105.pdf")