sjp.setTheme(base = theme_grey(), theme.font = NULL, title.color = "black", title.size = 1.2, title.align = "left", title.vjust = NULL, geom.outline.color = NULL, geom.outline.size = 0, geom.boxoutline.size = 0.5, geom.boxoutline.color = "black", geom.alpha = 1, geom.linetype = 1, geom.errorbar.size = 0.7, geom.errorbar.linetype = 1, geom.label.color = NULL, geom.label.size = 4, geom.label.alpha = 1, geom.label.angle = 0, axis.title.color = "grey30", axis.title.size = 1.1, axis.title.x.vjust = NULL, axis.title.y.vjust = NULL, axis.angle.x = 0, axis.angle.y = 0, axis.angle = NULL, axis.textcolor.x = "grey30", axis.textcolor.y = "grey30", axis.textcolor = NULL, axis.linecolor.x = NULL, axis.linecolor.y = NULL, axis.linecolor = NULL, axis.line.size = 0.5, axis.textsize.x = 1, axis.textsize.y = 1, axis.textsize = NULL, axis.tickslen = NULL, axis.tickscol = NULL, axis.ticksmar = NULL, axis.ticksize.x = NULL, axis.ticksize.y = NULL, panel.backcol = NULL, panel.bordercol = NULL, panel.col = NULL, panel.major.gridcol = NULL, panel.minor.gridcol = NULL, panel.gridcol = NULL, panel.gridcol.x = NULL, panel.gridcol.y = NULL, panel.major.linetype = 1, panel.minor.linetype = 1, plot.backcol = NULL, plot.bordercol = NULL, plot.col = NULL, plot.margins = NULL, legend.pos = "right", legend.just = NULL, legend.inside = FALSE, legend.size = 1, legend.color = "black", legend.title.size = 1, legend.title.color = "black", legend.title.face = "bold", legend.backgroundcol = "white", legend.bordercol = "white", legend.item.size = NULL, legend.item.backcol = "grey90", legend.item.bordercol = "white")theme_gray() are used. See 'Details'."black"."left" (default),
"center" or "right". You may use initial letter only.geom.outline.size
is larger than 0.0 to remove geom outline.0 to remove boxplot outline.geom.boxoutline.size is larger than 0.1 (solid line).0.81 (solid line).axis.angle.x and axis.angle.yaxis.textcolor.x and axis.textcolor.yaxis.linecolor.x and axis.linecolor.y.axis.linecolor
is set.axis.textsize.x and axis.textsize.y.panel.bordercol and panel.backcol.panel.major.gridcol and panel.minor.gridcol.panel.gridcol.panel.gridcol.plot.backcol and plot.bordercol."center" or
two-element numeric vector with values from 0-1. By default (outside legend),
justification is centered. If legend is inside and justification not specified,
legend justification is set according to legend position.TRUE to put legend inside the plotting area. See legend.pos."bold" face is used."white", so no visible background is drawn."white", so no visible border is drawn."grey90"."white".NULL, if a ggplot-theme was used.
base argument is intended to select a ggplot-theme
as base for further modifications (which can be triggered
via the various function arguments).
## Not run:
# library(sjmisc)
# data(efc)
# # set sjPlot-defaults, a slightly modification
# # of the ggplot base theme
# sjp.setTheme()
#
# # legends of all plots inside
# sjp.setTheme(legend.pos = "top left",
# legend.inside = TRUE)
# sjp.xtab(efc$e42dep, efc$e16sex)
#
# # Use classic-theme. you may need to
# # load the ggplot2-library.
# library(ggplot2)
# sjp.setTheme(base = theme_classic())
# sjp.frq(efc$e42dep)
#
# # adjust value labels
# sjp.setTheme(geom.label.size = 3.5, geom.label.color = "#3366cc",
# geom.label.angle = 90)
# # hjust-aes needs adjustment for this
# update_geom_defaults('text', list(hjust = -0.1))
# sjp.xtab(efc$e42dep, efc$e16sex, vjust = "center", hjust = "center")
#
# # Create own theme based on classic-theme
# sjp.setTheme(base = theme_classic(), axis.linecolor = "grey50",
# axis.textcolor = "#6699cc")
# sjp.frq(efc$e42dep)## End(Not run)
Run the code above in your browser using DataLab