Produce dot plots of selected coefficients from regression models computed in (robust) mediation analysis, or density plots of the indirect effect.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  plotMediation(object, ...)
## S3 method for class 'bootTestMediation'
plotMediation(object, method = c("dot",
"density"), parm = c("c", "ab"), ...)
## S3 method for class 'sobelTestMediation'
plotMediation(object, data, method = c("dot",
"density"), parm = c("c", "ab"), level = 0.95, ...)
## S3 method for class 'list'
plotMediation(object, data, method = c("dot", "density"),
parm = c("c", "ab"), level = 0.95, ...)
## Default S3 method:
plotMediation(object, mapping = attr(object, "mapping"),
facets = attr(object, "facets"), ...)
## S3 method for class 'testMediation'
autoplot(object, ...)
## S3 method for class 'testMediation'
plot(x, ...)

object, x 
an object inheriting from class

method 
a character string specifying which plot to produce.
Possible values are 
parm 
a character string specifying the coefficients to be included in a dot plot. The default is to include the direct and the indirect effect. 
data 
an optional numeric vector containing the xvalues at which to evaluate the assumed normal density from Sobel's test (only used in case of a density plot). The default is to take 100 equally spaced points between the estimated indirect effect +/ three times the standard error according to Sobel's formula. 
level 
numeric; the confidence level of the confidence intervals from Sobel's test to be included in a dot plot. The default is to include 95% confidence intervals. 
mapping 
an aesthetic mapping to override the default behavior (see

facets 
a faceting formula to override the default behavior (only
used in case of a dot plot). If supplied, 
... 
additional arguments to be passed to and from methods. 
An object of class "ggplot"
(see
ggplot
).
Andreas Alfons
testMediation
,
fortify
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.