- x
The output of
cond_indirect_effects(). (Named x
because it is required in the naming
of arguments of the plot generic
function.)
- x_label
The label for the
X-axis. Default is the value of the
predictor in the output of
cond_indirect_effects().
- w_label
The label for the
legend for the lines. Default is
"Moderator(s)".
- y_label
The label for the
Y-axis. Default is the name of the
response variable in the model.
- title
The title of the graph.
If not supplied, it will be generated
from the variable names or labels (in
x_label, y_label, and w_label).
If "", no title will be printed.
This can be used when the plot is for
manuscript submission and figures are
required to have no titles.
- x_from_mean_in_sd
How many SD
from mean is used to define "low" and
"high" for the focal variable.
Default is 1.
- x_method
How to define "high"
and "low" for the focal variable
levels. Default is in terms of the
standard deviation of the focal
variable, "sd". If equal to
"percentile", then the percentiles
of the focal variable in the dataset
is used. If the focal variable is
a latent variable, only
"sd" can be used.
- x_percentiles
If x_method is
"percentile", then this argument
specifies the two percentiles to be
used, divided by 100. It must be a
vector of two numbers. The default
is c(.16, .84), the 16th and 84th
percentiles, which corresponds
approximately to one SD below and
above mean for a normal distribution,
respectively.
- x_sd_to_percentiles
If
x_method is "percentile" and this
argument is set to a number, this
number will be used to determine the
percentiles to be used. The lower
percentile is the percentile in a
normal distribution that is
x_sd_to_percentiles SD below the
mean. The upper percentile is the
percentile in a normal distribution
that is x_sd_to_percentiles SD
above the mean. Therefore, if
x_sd_to_percentiles is set to 1,
then the lower and upper percentiles
are 16th and 84th, respectively.
Default is NA.
- note_standardized
If TRUE,
will check whether a variable has SD
nearly equal to one. If yes, will
report this in the plot. Default is
TRUE.
- no_title
If TRUE, title will
be suppressed. Default is FALSE.
- line_width
The width of the
lines as used in
ggplot2::geom_segment(). Default is
1.
- point_size
The size of the
points as used in
ggplot2::geom_point(). Default is
5.
- graph_type
If "default", the
typical line-graph with equal
end-points will be plotted. If
"tumble", then the tumble graph
proposed by Bodner (2016) will be
plotted. Default is "default"
for single-group models, and
"tumble" for multigroup models.
- use_implied_stats
For a
multigroup model, if TRUE,
the default,
model implied statistics will be
used in computing the means and SDs,
which take into equality constraints,
if any.
If FALSE, then the raw
data is
used to compute the means and SDs.
For latent variables, model implied
statistics are always used.
- facet_grid_cols, facet_grid_rows
If either or both of them are set
to character vector(s) of moderator
names, then ggplot2::facet_grid()
will be used to plot the graph,
with facet_grid_cols used as cols
and facet_grid_rows used as rows
when calling ggplot2::facet_grid().
- facet_grid_args
The list of
arguments to be used in calling
ggplot2::facet_grid(). Ignored
if ggplot2::facet_grid() is not
used.
- digits
The number of decimal
places to be printed for numerical
moderators when facet_grid is used.
Default is 4.
- keep_wlevels_order
If TRUE,
the default, the order of the levels
of moderators (from bottom to top)
in the object is retained. Set it
to FALSE to revert to the old
behavior (pre 0.3.3.4). If NULL,
the default, it will be determined
internally.
- ...
Additional arguments.
Ignored.