Description Usage Arguments See Also Examples
View source: R/gg-constructors.R
Add a line between two points on your graph
1 2 | agg_abline(x = NULL, y = NULL, x1, y1, x2, y2, colour = "black",
panel, lwd = 1, lty = 1, color)
|
x |
(Deprecated; use agg_vline instead) Draw a vertical line at x |
y |
(Deprecated; use agg_hline instead) Draw a horizontal at y |
x1 |
The first x coordinate |
y1 |
The first y coordinate |
x2 |
The second x coordinate |
y2 |
The second y coordinate |
colour |
The colour of the AB line (default black) |
panel |
Which panel should the line be placed on? You can specify a vector of panels (e.g. 'panel = c("1","3")') to apply the line to multiple panels at once. |
lwd |
(Optional, default 1) The line width |
lty |
(Optional, default 1) The line type (uses R line types) |
color |
(Deprecated; use colour instead) The colour of the AB line (default black) |
vignette("plotting-options", package = "arphit")
for a
detailed description of all the plotting options
1 2 3 4 5 6 | arphitgg(data) + agg_abline(x = 2001, colour = RBA["Blue1"], panel = "1") +
agg_abline(y = -0.5, colour = RBA["Red1"], panel = "1")
arphitgg(data) +
agg_abline(x1 = 2000, y1 = -0.1, x2 = 2002, y2 = 0.5,
colour = RBA["Blue1"], panel = "1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.