diff --git a/R/geom_bar_diverging.R b/R/geom_bar_diverging.R index 5698be3..b4b98c7 100644 --- a/R/geom_bar_diverging.R +++ b/R/geom_bar_diverging.R @@ -24,7 +24,7 @@ #' see [`stat_prop()`]. Passed only if `stat = "prop"`. #' @param height Statistic used, by default, to determine the height/width, #' see [`stat_prop()`]. Passed only if `stat = "prop"`. -#' @param height Statistic used, by default, to determine the labels, +#' @param labels Statistic used, by default, to determine the labels, #' see [`stat_prop()`]. Passed only if `stat = "prop"`. #' @param labeller Labeller function to format labels, #' see [`stat_prop()`]. Passed only if `stat = "prop"`. diff --git a/man/geom_bar_diverging.Rd b/man/geom_bar_diverging.Rd index fa67ffb..644982e 100644 --- a/man/geom_bar_diverging.Rd +++ b/man/geom_bar_diverging.Rd @@ -128,7 +128,7 @@ see \code{\link[=stat_prop]{stat_prop()}}. Passed only if \code{stat = "prop"}.} \item{default_by}{Name of an aesthetic determining denominators by default, see \code{\link[=stat_prop]{stat_prop()}}. Passed only if \code{stat = "prop"}.} -\item{height}{Statistic used, by default, to determine the labels, +\item{height}{Statistic used, by default, to determine the height/width, see \code{\link[=stat_prop]{stat_prop()}}. Passed only if \code{stat = "prop"}.} \item{reverse}{If \code{TRUE}, will reverse the default stacking order. @@ -148,6 +148,9 @@ by 2, i.e. it will be centered.} \item{width}{Bar width.} +\item{labels}{Statistic used, by default, to determine the labels, +see \code{\link[=stat_prop]{stat_prop()}}. Passed only if \code{stat = "prop"}.} + \item{labeller}{Labeller function to format labels, see \code{\link[=stat_prop]{stat_prop()}}. Passed only if \code{stat = "prop"}.} }