Learn R Programming

sjPlot (version 2.1.0)

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:
...
other arguments passed down to sjp.setTheme.

Value

The customized theme object.

References

See Also

sjPlot manual: customize plot appearance

Examples

Run this code
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