% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geoms-base.R
\name{geom_rug}
\alias{geom_rug}
\title{Marginal rug}
\usage{
geom_rug(
  mapping = NULL,
  data = NULL,
  sides = NULL,
  length = NULL,
  color = NULL,
  linewidth = NULL,
  alpha = NULL
)
}
\arguments{
\item{mapping, data}{Standard layer overrides.}

\item{sides}{Which edges to draw on, as a string of \code{"t"}, \code{"r"}, \code{"b"},
\code{"l"} (default \code{"bl"}).}

\item{length}{Tick length as a fraction of the panel.}

\item{color, linewidth, alpha}{Appearance.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
A short tick per observation along the panel edges, showing the raw
values behind a density, smooth, or scatter.
}
\examples{
ggnext(cars, aes(speed, dist)) + geom_point() + geom_rug()
}
