% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\name{Layer}
\alias{Layer}
\title{Layer: one geom + stat + data/mapping overrides}
\usage{
Layer(
  geom = Geom(),
  stat = Stat(),
  mapping = NULL,
  data = NULL,
  params = list(),
  inherit = TRUE
)
}
\arguments{
\item{geom}{A \link{Geom} subclass instance.}

\item{stat}{A \link{Stat} subclass instance.}

\item{mapping}{Layer-level aesthetic mapping (or \code{NULL} to inherit).}

\item{data}{Layer-level data (or \code{NULL} to inherit the plot data).}

\item{params}{Named list of literal visual parameters (e.g. \code{size = 4}).}

\item{inherit}{Whether the layer merges the plot-level mapping into its
own (\code{TRUE} for data layers; reference-line layers that synthesize
their own data set \code{FALSE}).}
}
\value{
An S7 object of class \code{Layer}, as returned by the \verb{geom_*()} constructors.
}
\description{
Layer: one geom + stat + data/mapping overrides
}
