Usage
## S3 method for class 'mediate':
plot(x, treatment = NULL,
labels = c("ACME","Direct\nEffect","Total\nEffect"),
xlim = NULL, ylim = NULL, xlab = "", ylab = "",
main = NULL, lwd = 1.5, cex = .85,
col = "black", ...)Arguments
x
object of class mediate or mediate.order as produced by mediate.
treatment
a character string indicating the baseline treatment value of the estimated causal mediation effect and direct effect to plot. Can be either "control", "treated" or "both". If 'NULL' (default), both sets of estimates are plotted if and only if they differ
labels
a vector of length 3 indicating the labels for the estimated effects.
xlim
range of the horizontal axis.
ylim
range of the vertical axis.
xlab
label of the horizontal axis.
ylab
label of the vertical axis.
lwd
width of the horizontal bars for confidence intervals.
cex
size of the dots for point estimates.
col
color of the dots and horizontal bars for the estimates.
...
additional parameters passed to 'plot'.