The $estimate_plot() method creates plots showing overall MRP estimates or
estimates for different demographic groups. Check out the
More examples of R6 classes
vignette for usage examples.
estimate_plot(
model,
group = NULL,
interval = 0.95,
show_caption = TRUE,
file = NULL,
...
)A ggplot object showing MRP estimates.
Fitted MRPModel object
Character string specifying the demographic group.
If left as NULL, overall estimates are plotted.
Confidence interval (a numeric value between 0 and 1) or
standard deviation ("1sd" or "2sd") for the estimates (default is 0.95).
Logical indicating whether to show the caption in the plot (default is TRUE).
Optional file path to save the plot.
Additional arguments passed to ggsave, such as width and height.