diff --git a/DESCRIPTION b/DESCRIPTION index a7f1745780..383dd5a511 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -263,6 +263,6 @@ Collate: 'zxx.r' 'zzz.r' VignetteBuilder: knitr -RoxygenNote: 7.1.0.9000 +RoxygenNote: 7.1.1 Roxygen: list(markdown = TRUE) Encoding: UTF-8 diff --git a/R/stat-boxplot.r b/R/stat-boxplot.r index 762bfac606..a1b3a7bfa8 100644 --- a/R/stat-boxplot.r +++ b/R/stat-boxplot.r @@ -2,15 +2,16 @@ #' @param coef Length of the whiskers as multiple of IQR. Defaults to 1.5. #' @inheritParams stat_identity #' @section Computed variables: +#' `stat_boxplot()` provides the following variables, some of which depend on the orientation: #' \describe{ #' \item{width}{width of boxplot} -#' \item{ymin}{lower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR} -#' \item{lower}{lower hinge, 25% quantile} +#' \item{ymin *or* xmin}{lower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR} +#' \item{lower *or* xlower}{lower hinge, 25% quantile} #' \item{notchlower}{lower edge of notch = median - 1.58 * IQR / sqrt(n)} -#' \item{middle}{median, 50% quantile} +#' \item{middle *or* xmiddle}{median, 50% quantile} #' \item{notchupper}{upper edge of notch = median + 1.58 * IQR / sqrt(n)} -#' \item{upper}{upper hinge, 75% quantile} -#' \item{ymax}{upper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR} +#' \item{upper *or* xupper}{upper hinge, 75% quantile} +#' \item{ymax *or* xmax}{upper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR} #' } #' @export stat_boxplot <- function(mapping = NULL, data = NULL, diff --git a/R/stat-smooth.r b/R/stat-smooth.r index 31a7941bb2..ad9b438967 100644 --- a/R/stat-smooth.r +++ b/R/stat-smooth.r @@ -30,10 +30,11 @@ #' @param method.args List of additional arguments passed on to the modelling #' function defined by `method`. #' @section Computed variables: +#' `stat_smooth()` provides the following variables, some of which depend on the orientation: #' \describe{ -#' \item{y}{predicted value} -#' \item{ymin}{lower pointwise confidence interval around the mean} -#' \item{ymax}{upper pointwise confidence interval around the mean} +#' \item{y *or* x}{predicted value} +#' \item{ymin *or* xmin}{lower pointwise confidence interval around the mean} +#' \item{ymax *or* xmax}{upper pointwise confidence interval around the mean} #' \item{se}{standard error} #' } #' @export diff --git a/man/geom_boxplot.Rd b/man/geom_boxplot.Rd index 9961f3fa96..c137d12059 100644 --- a/man/geom_boxplot.Rd +++ b/man/geom_boxplot.Rd @@ -172,15 +172,16 @@ Learn more about setting these aesthetics in \code{vignette("ggplot2-specs")}. \section{Computed variables}{ +\code{stat_boxplot()} provides the following variables, some of which depend on the orientation: \describe{ \item{width}{width of boxplot} -\item{ymin}{lower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR} -\item{lower}{lower hinge, 25\% quantile} +\item{ymin \emph{or} xmin}{lower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR} +\item{lower \emph{or} xlower}{lower hinge, 25\% quantile} \item{notchlower}{lower edge of notch = median - 1.58 * IQR / sqrt(n)} -\item{middle}{median, 50\% quantile} +\item{middle \emph{or} xmiddle}{median, 50\% quantile} \item{notchupper}{upper edge of notch = median + 1.58 * IQR / sqrt(n)} -\item{upper}{upper hinge, 75\% quantile} -\item{ymax}{upper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR} +\item{upper \emph{or} xupper}{upper hinge, 75\% quantile} +\item{ymax \emph{or} xmax}{upper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR} } } diff --git a/man/geom_smooth.Rd b/man/geom_smooth.Rd index e91fc73a65..95c11217cb 100644 --- a/man/geom_smooth.Rd +++ b/man/geom_smooth.Rd @@ -170,10 +170,11 @@ Learn more about setting these aesthetics in \code{vignette("ggplot2-specs")}. \section{Computed variables}{ +\code{stat_smooth()} provides the following variables, some of which depend on the orientation: \describe{ -\item{y}{predicted value} -\item{ymin}{lower pointwise confidence interval around the mean} -\item{ymax}{upper pointwise confidence interval around the mean} +\item{y \emph{or} x}{predicted value} +\item{ymin \emph{or} xmin}{lower pointwise confidence interval around the mean} +\item{ymax \emph{or} xmax}{upper pointwise confidence interval around the mean} \item{se}{standard error} } }