% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feature_pcm.R
\name{plot.pcm_analysis}
\alias{plot.pcm_analysis}
\title{Plot PCM Results}
\usage{
\method{plot}{pcm_analysis}(
  x,
  metric = "RMSE",
  legend_pos = "topright",
  bar_col = "steelblue",
  neg_col = "tomato",
  cex.labels = 0.8,
  cex.legend = 0.75,
  ...
)
}
\arguments{
\item{x}{An object of class \code{pcm_analysis} from \code{\link{assess_pcm}}.}

\item{metric}{Character, either \code{"RMSE"} (default) or \code{"MAE"}.}

\item{legend_pos}{Character giving the legend position (e.g. \code{"topright"},
\code{"topleft"}, \code{"bottomright"}). Set to \code{NULL} or \code{FALSE}
to suppress the legend entirely. Default \code{"topright"}.}

\item{bar_col}{Colour for positive-PCM bars (default \code{"steelblue"}).}

\item{neg_col}{Colour for negative-PCM bars (default \code{"tomato"}).}

\item{cex.labels}{Numeric expansion factor for the value labels printed on
each bar. Default 0.8.}

\item{cex.legend}{Numeric expansion factor for the legend text. Default 0.75.}

\item{...}{Additional graphical parameters passed to \code{\link[graphics]{barplot}}.}
}
\description{
Creates a grouped barplot of PCM values for each mediation path, with one bar
per indicator and threshold lines for the weak/moderate/strong classification
boundaries.
}
\examples{
\donttest{
# Customise legend placement and bar colours
# plot(pcm, legend_pos = "topleft", bar_col = "dodgerblue")

# Suppress legend entirely
# plot(pcm, legend_pos = NULL)
}

}
