% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geoms-clinical.R
\name{geom_dose_response}
\alias{geom_dose_response}
\title{Dose-response curve}
\usage{
geom_dose_response(
  mapping = NULL,
  data = NULL,
  color = NULL,
  points = TRUE,
  ec50 = TRUE
)
}
\arguments{
\item{mapping, data}{Standard layer overrides. Map dose to \code{x} and
response to \code{y}.}

\item{color}{Curve color.}

\item{points}{Draw the observed points.}

\item{ec50}{Mark the fitted EC50 with a vertical line.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
A four-parameter log-logistic curve fitted to dose-response data, with a
confidence band and the fitted EC50 marked.
}
\examples{
d <- data.frame(
  dose = rep(c(0.1, 1, 10, 100, 1000), each = 3),
  resp = c(5, 7, 6, 18, 22, 20, 52, 48, 55, 82, 79, 85, 95, 97, 93)
)
ggnext(d, aes(dose, resp)) + geom_dose_response() + scale_x_log10()
}
