% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_theme.R
\name{nhm_par}
\alias{nhm_par}
\title{Apply the NHM theme to base R plots}
\usage{
nhm_par(
  bg = NULL,
  fg = NULL,
  col = NULL,
  col.axis = NULL,
  col.lab = NULL,
  col.main = NULL,
  mar = c(4, 4, 2, 1),
  ...
)
}
\arguments{
\item{bg}{Background colour. Defaults to the card colour.}

\item{fg}{Foreground colour (axes, box). Defaults to muted text.}

\item{col}{Default plotting colour (lines, points, bars). Defaults
to the first palette colour (cyan).}

\item{col.axis}{Axis tick-label colour. Defaults to theme text.}

\item{col.lab}{Axis-label colour. Defaults to theme text.}

\item{col.main}{Title colour. Defaults to white.}

\item{mar}{Plot margins as \code{c(bottom, left, top, right)}.}

\item{...}{Additional arguments passed to \code{par()}.}
}
\value{
The previous \code{par()} settings (invisibly), so they can
be restored with \code{par(old)}.
}
\description{
Sets \code{par()} parameters to match the NHM dark theme. Call this
inside \code{renderPlot()} before any plotting code.
}
