PlotSettings: Plot Settings

PlotSettingsR Documentation

Plot Settings

Description

Class for plot settings.

Details

Collects typical plot settings in an object.

Fields

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.

Methods

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


rpact documentation built on July 9, 2023, 6:30 p.m.