% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geoms-base.R
\name{geom_curve}
\alias{geom_curve}
\title{Curved connector}
\usage{
geom_curve(
  mapping = NULL,
  data = NULL,
  curvature = NULL,
  color = NULL,
  linewidth = NULL,
  alpha = NULL
)
}
\arguments{
\item{mapping, data}{Standard layer overrides. Requires \code{x}, \code{y}, \code{xend},
\code{yend}.}

\item{curvature}{How far the curve bows; negative bows the other way.}

\item{color, linewidth, alpha}{Appearance.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
A quadratic curve between two points, for annotation leaders and
relationship diagrams where a straight segment would overlap the data.
}
\examples{
d <- data.frame(x = 1, y = 1, xe = 3, ye = 3)
ggnext(d, aes(x, y, xend = xe, yend = ye)) + geom_curve()
}
