R6 class defining theme background properties
Public fields
watermarkcharacter defining content of watermark
legendPositioncharacter defining where legend should usually be placed
legendTitlecharacter defining the content of legend title
plotBackgroundElementobject for plot area properties (outside of panel)panelBackgroundElementobject for plot area properties (inside of panel)xAxisBackgroundElementobject for x axis propertiesyAxisBackgroundElementobject for y axis propertiesy2AxisBackgroundElementobject for right y axis propertiesxGridBackgroundElementobject for x grid propertiesyGridBackgroundElementobject for y grid propertiesy2GridBackgroundElementobject for right y grid propertieslegendBackgroundElementobject for legend area properties
Methods
Method new()
Create a new ThemeBackground object
Usage
ThemeBackground$new(
watermark = NULL,
legendPosition = NULL,
legendTitle = NULL,
plot = NULL,
panel = NULL,
xAxis = NULL,
yAxis = NULL,
y2Axis = NULL,
xGrid = NULL,
yGrid = NULL,
y2Grid = NULL,
legend = NULL,
baseFill = "white",
baseColor = "black",
baseSize = 0.5,
baseLinetype = "solid"
)Arguments
watermarkcharacter defining content of watermark
legendPositioncharacter defining where legend should usually be placed
legendTitlecharacter defining the content of legend title
plotBackgroundElementobject or list for plot area properties (outside of panel)panelBackgroundElementobject or list for plot area properties (inside of panel)xAxisBackgroundElementobject or list for x axis propertiesyAxisBackgroundElementobject or list for y axis propertiesy2AxisBackgroundElementobject or list for right y axis propertiesxGridBackgroundElementobject or list for x grid propertiesyGridBackgroundElementobject or list for y grid propertiesy2GridBackgroundElementobject or list for right y grid propertieslegendBackgroundElementobject or list for legend area propertiesbaseFillname of base color fill of undefined background elements. Default is "white".
baseColorname of base color of undefined background elements. Default is "black".
baseSizename of base size of undefined background elements. Default is 0.5.
baseLinetypename of base size of undefined background elements. Default is "solid".