---
title: "Plotting mediation effects and contrasts"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Plotting mediation effects and contrasts}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
## Choose a figure
Start with a fitted `result` from the [quick start](GetStarted.html).
`plot(result)` selects an indirect-effect display automatically;
`plot(summary(result))` displays all selected core effects.
Both inherit the saved standardization setting and return editable ggplots.
**Forest: compare effects and intervals**
[](#a-consistent-plot-method)
**Curve: use a continuous moderator**
[](#a-consistent-plot-method)
**Category points: compare groups**
[](#a-consistent-plot-method)
**Difference: show a contrast and its interval**
[](#differences-need-their-own-intervals)
**Recommended route:** [create the example fits](#reproducible-two-condition-data),
then use [the shared plot method](#a-consistent-plot-method).
For a custom contrast, extract it with `wsmed_contrasts()` and call `plot()`;
the [results guide](ResultsGuide.html#compare-two-pathways) supplies a short example.
The named plotting helpers later on this page remain available for stored-table
compatibility. They can use different bootstrap interval conventions; review
[interval conventions](#interval-conventions) before comparing figures.
## Reproducible two-condition data