Add background shading

agg_bgshading(x1 = NA, y1 = NA, x2 = NA, y2 = NA,
  colour = RBA["Grey2"], panel, color)

Arguments

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 AB line (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 AB line (default grey)

See also

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

Examples

arphitgg(data) + agg_bgshading(x1 = 2001, x2 = 2002, panel = "1")
#> dev.new(): using pdf(file="Rplots109.pdf")
arphitgg(data) + agg_bgshading(y1 = 0.5, y2 = -0.5, panel = "1")
#> dev.new(): using pdf(file="Rplots110.pdf")