% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api.R
\name{ggnext}
\alias{ggnext}
\title{Create a new ggnext plot}
\usage{
ggnext(data = NULL, mapping = NULL, width = 640, height = 480)
}
\arguments{
\item{data}{A data frame used by all layers unless a layer overrides it.}

\item{mapping}{Default aesthetic mapping created with \code{\link[=aes]{aes()}}.}

\item{width, height}{Device size in pixels (default 640 x 480).}
}
\value{
A \link{GgnextPlot} object.
}
\description{
The entry point of the grammar: bind a default data frame and a default
aesthetic mapping, then add layers, scales, and coordinate systems with
\code{+}.
}
\examples{
p <- ggnext(cars, aes(speed, dist)) + geom_point()
svg <- render(p)
}
