LegendConfiguration | R Documentation |
R6 class defining the legend configuration of a ggplot
object
caption
of legend defined as data.frame with caption properties
position
of legend as defined in Enum LegendPositions
font
Font
object defining the font of the legend
background
Background
object defining the background of the legend
title
character defining title of the legend
new()
Create a new LegendConfiguration
object
LegendConfiguration$new( position = NULL, caption = NULL, title = NULL, font = NULL, background = NULL )
position
position of the legend as defined by enum LegendPositions
caption
data.frame containing the properties of the legend caption
title
character or Label
object defining the title of the legend. A value of NULL
removes the title.
font
Font
object defining the font of the legend caption
background
BackgroundElement
object defining the background of the legend
A new LegendConfiguration
object
updatePlot()
Update legend configuration on a ggplot
object
LegendConfiguration$updatePlot(plotObject)
plotObject
ggplot
object
A ggplot
object with updated axis properties
clone()
The objects of this class are cloneable with this method.
LegendConfiguration$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other PlotConfiguration classes:
AxisConfiguration
,
BackgroundConfiguration
,
BackgroundElement
,
BoxWhiskerPlotConfiguration
,
CumulativeTimeProfilePlotConfiguration
,
DDIRatioPlotConfiguration
,
ExportConfiguration
,
HistogramPlotConfiguration
,
LabelConfiguration
,
LineElement
,
ObsVsPredPlotConfiguration
,
PKRatioPlotConfiguration
,
PieChartPlotConfiguration
,
PlotConfiguration
,
PlotGridConfiguration
,
QQPlotConfiguration
,
ResVsPredPlotConfiguration
,
ResVsTimePlotConfiguration
,
TimeProfilePlotConfiguration
,
TornadoPlotConfiguration
,
XAxisConfiguration
,
YAxisConfiguration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.