| sjPlot-themes {sjPlot} | R Documentation |
Set default theme plots or modify plot appearance.
theme_sjplot(base_size = 12, base_family = "") theme_sjplot2(base_size = 12, base_family = "") theme_blank(base_size = 12, base_family = "") theme_538(base_size = 12, base_family = "") font_size(title, axis_title.x, axis_title.y, labels.x, labels.y, offset.x, offset.y, base.theme) label_angle(angle.x, angle.y, base.theme) legend_style(inside, pos, justify, base.theme)
base_size |
Base font size. |
base_family |
Base font family. |
title |
Font size for plot titles. |
axis_title.x |
Font size for x-axis titles. |
axis_title.y |
Font size for y-axis titles. |
labels.x |
Font size for x-axis labels. |
labels.y |
Font size for y-axis labels. |
offset.x |
Offset for x-axis titles. |
offset.y |
Offset for y-axis titles. |
base.theme |
Optional ggplot-theme-object, which is needed in case multiple
functions should be combined, e.g. |
angle.x |
Angle for x-axis labels. |
angle.y |
Angle for y-axis labels. |
inside |
Logical, use |
pos |
Position of the legend, if a legend is drawn.
|
justify |
Justification of legend, relative to its position ( |
# prepare data library(sjmisc) data(efc) efc <- to_factor(efc, c161sex, e42dep, c172code) m <- lm(neg_c_7 ~ pos_v_4 + c12hour + e42dep + c172code, data = efc) # create plot-object p <- plot_model(m) # change theme p + theme_sjplot() # change font-size p + font_size(axis_title.x = 30)