An object of class
ggeffects, as returned by the functions
from this package.
TRUE, confidence bands (for continuous variables
at x-axis) resp. error bars (for factors at x-axis) are plotted.
Character vector, indicating the style of the confidence
bands. May be either
"dot", to plot a ribbon, error bars, or dashed or dotted lines as
- facets, grid
Logical, defaults to
x has a column named
facet, and defaults to
x has no such
facets = TRUE to wrap the plot into facets even
for grouping variables (see 'Examples').
grid is an alias for
- add.data, rawdata
TRUE, a layer with raw data from response by
predictor on the x-axis, plotted as point-geoms, is added to the plot.
TRUE, limits the range of the prediction
bands to the range of the data.
TRUE, a layer with partial residuals is
added to the plot. See vignette
Effect Displays with Partial Residuals.
from effects for more details on partial residual plots.
TRUE, a loess-fit line is added to the
partial residuals plot. Only applies if
For mixed effects models, name of the grouping variable
of random effects. If
collapse.group = TRUE, data points "collapsed"
by the first random effect groups are added to the plot. Else, if
collapse.group is a name of a group factor, data is collapsed by
that specific random effect. See
Character vector with color values in hex-format, valid
color value names (see
demo("colors")) or a name of a
Following options are valid for
If not specified, the color brewer palette "Set1" will be used.
"gs", a greyscale will be used.
"bw", the plot is black/white and uses different line types to distinguish groups.
There are some pre-defined color-palettes in this package that can be used,
colors = "metro". See
show_pals() to show all available palettes.
Else specify own color values or names as vector (e.g.
colors = c("#f00000", "#00ff00")).
Alpha value for the confidence bands.
Value for offsetting or shifting error bars, to avoid overlapping.
Only applies, if a factor is plotted at the x-axis (in such cases, the
confidence bands are replaced by error bars automatically), or if
ci.style = "errorbars".
TRUE, a slightly tweaked version of ggplot's
theme_ggeffects(), is applied to the plot. If
FALSE, no theme-modifications are applied.
Alpha value for data points, when
add.data = TRUE.
Numeric, between 0 and 1. If not
add.data = TRUE, adds a small amount of random variation to
the location of data points dots, to avoid overplotting. Hence the
points don't reflect exact values in the data. May also be a numeric
vector of length two, to add different horizontal and vertical jittering.
For binary outcomes, raw data is not jittered by default to avoid that
data points exceed the axis limits.
TRUE, the y-axis scale is log-transformed.
This might be useful for binomial models with predicted probabilities on
Desired target case. Labels will automatically converted into the
specified character case. See
?sjlabelled::convert_case for more details
on this argument.
Logical, shows or hides the plot legend.
Logical, shows or hides the plot title-
Logical, shows or hides the plot title for the x-axis.
Logical, shows or hides the plot title for the y-axis.
Numeric, size of the point geoms.
Numeric, size of the line geoms.
TRUE and plot has point-geoms with
error bars (this is usually the case when the x-axis is discrete), points
of same groups will be connected with a line.
x has a
(i.e. when four
terms were used), a single, integrated plot is produced.
Further arguments passed down to
control the appearance of the y-axis.
Base font size.
Base font family.