Learn R Programming

sjPlot (version 2.3.3)

set_theme: Set default theme for sjp-functions

Description

Set default theme for sjp-functions.

Usage

set_theme(theme = c("forest", "538", "539", "scatter", "forestw", "538w",
  "539w", "scatterw", "blank"), ...)

Arguments

theme

Name of a pre-set theme. May be one of:

"blank"

a theme with no grids and axes.

"forest"

a theme for forest plots, with no grids, in "539" style.

"538"

a grey-scaled theme inspired by 538-charts, adapted from minimaxir.com.

"539"

a slight modification of the 538-theme.

"scatter"

a theme for scatter plots in 539-theme-style.

"538w", "539w", "scatterw" and "forestw"

for themes as described above, however all with white backgrounds.

...

Other arguments passed down to sjp.setTheme.

Value

The customized theme object.

References

See Also

sjPlot manual: customize plot appearance

Examples

Run this code
# NOT RUN {
library(sjmisc)
data(efc)

# of the ggplot base theme
set_theme("539")
sjp.xtab(efc$e42dep, efc$e16sex)

# }

Run the code above in your browser using DataLab