% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geoms-base.R
\name{geom_errorbarh}
\alias{geom_errorbarh}
\title{Horizontal error bars}
\usage{
geom_errorbarh(
  mapping = NULL,
  data = NULL,
  color = NULL,
  linewidth = NULL,
  alpha = NULL,
  height = NULL
)
}
\arguments{
\item{mapping, data}{Standard layer overrides. Requires \code{y}, \code{xmin},
\code{xmax}.}

\item{color, linewidth, alpha}{Appearance.}

\item{height}{Cap height in y-axis units.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
The horizontal counterpart of \code{\link[=geom_errorbar]{geom_errorbar()}}, for intervals that run
along x — forest plots and tornado charts.
}
\examples{
d <- data.frame(g = c("a", "b"), lo = c(1, 2), hi = c(4, 5))
ggnext(d, aes(y = g, xmin = lo, xmax = hi)) + geom_errorbarh()
}
