% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/marginal_means.R
\name{plot.marginal_means.brma}
\alias{plot.marginal_means.brma}
\title{Plot Estimated Marginal Means}
\usage{
\method{plot}{marginal_means.brma}(
  x,
  parameter,
  type = NULL,
  prior = FALSE,
  plot_type = "base",
  dots_prior = NULL,
  output_measure = NULL,
  transform = NULL,
  ...
)
}
\arguments{
\item{x}{a \code{marginal_means.brma} object.}

\item{parameter}{moderator term to plot. Use the original term name, for
example \code{"measure"}, \code{"intercept"} for the intercept when
available, \code{"mu"} as an intercept alias, or the internal parameter name,
for example \code{"mu_measure"}.}

\item{type}{for RoBMA product-space objects, whether to plot model-averaged
(\code{"averaged"}) or conditional (\code{"conditional"}) marginal means.
Defaults to \code{"averaged"} and is available only for RoBMA marginal
means.}

\item{prior}{whether the marginal prior distribution should be added to the
plot. Defaults to \code{FALSE}.}

\item{plot_type}{whether to use base R graphics (\code{"base"}) or ggplot2
(\code{"ggplot"}). Defaults to \code{"base"}.}

\item{dots_prior}{list of additional graphical arguments passed to the prior
plotting function.}

\item{output_measure}{effect-size measure for location/effect predictions.
Defaults to the fitted measure. Supported conversions are among \code{"SMD"},
\code{"COR"}, \code{"ZCOR"}, and \code{"OR"}; \code{"RR"}, \code{"HR"},
\code{"IRR"}, \code{"RD"}, and \code{"GEN"} can only be returned on their
fitted measure. Use \code{transform = "EXP"} for ratio-scale output from
log-scale measures.}

\item{transform}{optional display transformation. Currently \code{"EXP"}
exponentiates log-scale measures \code{"OR"}, \code{"RR"}, \code{"HR"},
and \code{"IRR"}.}

\item{...}{additional graphical arguments passed to
\code{BayesTools::plot_marginal()}.}
}
\value{
\code{NULL} invisibly if \code{plot_type = "base"} or a ggplot object
if \code{plot_type = "ggplot"}.
}
\description{
Plots estimated marginal means stored in a
\code{marginal_means.brma} object using \code{BayesTools::plot_marginal()}.
}
