mediations funciton. Output is a series of plots generated via plot.mediate for each treatment/mediator/outcome combination specified in the input 'mediations' object.## S3 method for class 'mediations':
plot(x, which = names(x),
ask = prod(par("mfcol")) < length(which) && dev.interactive(), ...)plot.mediate function for individual plots.mediations returns an object of class mediations. The function summary is used to
obtain a table of the results. The plot function instead plots these quantities. All additional parameters desired
for the plotting of an output from mediate can be passed through.mediations, plot.mediate, plot.