% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geoms-base.R
\name{geom_raster}
\alias{geom_raster}
\title{Raster}
\usage{
geom_raster(mapping = NULL, data = NULL, color = NULL, alpha = NULL)
}
\arguments{
\item{mapping, data, color, alpha}{As in \code{\link[=geom_point]{geom_point()}}.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
A tile grid drawn without cell borders — the right choice for a dense
heatmap or an image, where borders would swamp the data.
}
\examples{
g <- expand.grid(x = 1:20, y = 1:20)
g$z <- as.vector(outer(1:20, 1:20, function(a, b) sin(a / 3) * cos(b / 3)))
ggnext(g, aes(x, y, color = z)) + geom_raster()
}
