PlotSettings | R Documentation |
Class for plot settings.
Collects typical plot settings in an object.
lineSize
The line size.
pointSize
The point size.
pointColor
The point color, e.g., "red" or "blue".
mainTitleFontSize
The main tile font size.
axesTextFontSize
The text font size.
legendFontSize
The legend font size.
scalingFactor
The scaling factor.
adjustLegendFontSize(adjustingValue)
Adjusts the legend font size, e.g., run
adjustLegendFontSize(-2)
# makes the font size 2 points smaller
enlargeAxisTicks(p)
Enlarges the axis ticks
expandAxesRange(p, x = NA_real_, y = NA_real_)
Expands the axes range
hideGridLines(p)
Hides the grid lines
setAxesAppearance(p)
Sets the font size and face of the axes titles and texts
setColorPalette(p, palette, mode = c("colour", "fill", "all"))
Sets the color palette
setLegendBorder(p)
Sets the legend border
setMainTitle(p, mainTitle, subtitle = NA_character_)
Sets the main title
setMarginAroundPlot(p, margin = 0.2)
Sets the margin around the plot, e.g., run
setMarginAroundPlot(p, .2)
or
setMarginAroundPlot(p, c(.1, .2, .1, .2)
setTheme(p)
Sets the theme
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.