Learn R Programming

rpact (version 3.0.3)

PlotSettings: Plot Settings

Description

Class for plot settings.

Arguments

Fields

lineSize

The line size.

pointSize

The point size.

mainTitleFontSize

The main tile font size.

axesTextFontSize

The text font size.

legendFontSize

The legend font size.

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

Details

Collects typical plot settings in an object.