Description Usage Arguments See Also Examples
View source: R/gg-constructors.R
Add background shading
1 2 |
x1 |
The bottom left x coordinate (omit to have the shading automatically snap to the edge of the panel) |
y1 |
The bottom left y coordinate (omit to have the shading automatically snap to the edge of the panel) |
x2 |
The top right x coordinate (omit to have the shading automatically snap to the edge of the panel) |
y2 |
The top right y coordinate (omit to have the shading automatically snap to the edge of the panel) |
colour |
(optional) The colour of the background shading (default grey) |
panel |
Which panel should the background shading be placed on? You can specify a vector of panels (e.g. 'panel = c("1","3")') to apply the shading to multiple panels at once. |
color |
(Deprecated; use colour instead) The colour of the background shading |
vignette("plotting-options", package = "arphit")
for a
detailed description of all the plotting options
1 2 | arphitgg(data) + agg_bgshading(x1 = 2001, x2 = 2002, panel = "1")
arphitgg(data) + agg_bgshading(y1 = 0.5, y2 = -0.5, panel = "1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.