agg_arrow: Add an arrow

Description Usage Arguments See Also Examples

View source: R/gg-constructors.R

Description

Add an arrow

Usage

1
2
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

1
2
3
arphitgg(data) +
  agg_arrow(tail.x = 2002, tail.y = 0, head.x = 2003, head.y = 1,
            color = RBA["Blue1"], panel = "1")

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