agg_bgshading: Add background shading

Description Usage Arguments See Also Examples

View source: R/gg-constructors.R

Description

Add background shading

Usage

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

See Also

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

Examples

1
2
arphitgg(data) + agg_bgshading(x1 = 2001, x2 = 2002, panel = "1")
arphitgg(data) + agg_bgshading(y1 = 0.5, y2 = -0.5, panel = "1")

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