From 089297be31f6fda4410a258eedb5dcd6890f289e Mon Sep 17 00:00:00 2001 From: Damon Bayer Date: Wed, 16 Feb 2022 18:53:40 -0800 Subject: [PATCH 1/3] fix styling in scale-viridis documentation binned_scale should be followed by parenthesis like continuous_scale() and discrete_scale() --- R/scale-viridis.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/scale-viridis.r b/R/scale-viridis.r index 1ab871bdfb..570704a41a 100644 --- a/R/scale-viridis.r +++ b/R/scale-viridis.r @@ -9,7 +9,7 @@ #' @inheritParams scales::gradient_n_pal #' @inheritParams continuous_scale #' @param ... Other arguments passed on to [discrete_scale()], -#' [continuous_scale()], or [binned_scale] to control name, limits, breaks, +#' [continuous_scale()], or [binned_scale()] to control name, limits, breaks, #' labels and so forth. #' @param aesthetics Character string or vector of character strings listing the #' name(s) of the aesthetic(s) that this scale works with. This can be useful, for From 68d984a577ef1ba91fe03a001e446a8f69f15ada Mon Sep 17 00:00:00 2001 From: Damon Bayer Date: Thu, 17 Feb 2022 16:54:57 -0800 Subject: [PATCH 2/3] also fix styling in scale-alpha documentation --- R/scale-alpha.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/scale-alpha.r b/R/scale-alpha.r index 90c58998ee..aaeea273ff 100644 --- a/R/scale-alpha.r +++ b/R/scale-alpha.r @@ -5,7 +5,7 @@ #' `scale_alpha()` is an alias for `scale_alpha_continuous()` since #' that is the most common use of alpha, and it saves a bit of typing. #' -#' @param ... Other arguments passed on to [continuous_scale()], [binned_scale], +#' @param ... Other arguments passed on to [continuous_scale()], [binned_scale()], #' or [discrete_scale()] as appropriate, to control name, limits, #' breaks, labels and so forth. #' @param range Output range of alpha values. Must lie between 0 and 1. From d52bf7725bf410ad484233a40042beccf9f87671 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 15 Mar 2022 16:08:29 -0500 Subject: [PATCH 3/3] Re-document --- man/scale_alpha.Rd | 2 +- man/scale_viridis.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/scale_alpha.Rd b/man/scale_alpha.Rd index 31c92b4c05..048faaf983 100644 --- a/man/scale_alpha.Rd +++ b/man/scale_alpha.Rd @@ -21,7 +21,7 @@ scale_alpha_discrete(...) scale_alpha_ordinal(..., range = c(0.1, 1)) } \arguments{ -\item{...}{Other arguments passed on to \code{\link[=continuous_scale]{continuous_scale()}}, \link{binned_scale}, +\item{...}{Other arguments passed on to \code{\link[=continuous_scale]{continuous_scale()}}, \code{\link[=binned_scale]{binned_scale()}}, or \code{\link[=discrete_scale]{discrete_scale()}} as appropriate, to control name, limits, breaks, labels and so forth.} diff --git a/man/scale_viridis.Rd b/man/scale_viridis.Rd index 12c8ed4192..febafb027d 100644 --- a/man/scale_viridis.Rd +++ b/man/scale_viridis.Rd @@ -93,7 +93,7 @@ scale_fill_viridis_b( } \arguments{ \item{...}{Other arguments passed on to \code{\link[=discrete_scale]{discrete_scale()}}, -\code{\link[=continuous_scale]{continuous_scale()}}, or \link{binned_scale} to control name, limits, breaks, +\code{\link[=continuous_scale]{continuous_scale()}}, or \code{\link[=binned_scale]{binned_scale()}} to control name, limits, breaks, labels and so forth.} \item{alpha}{The alpha transparency, a number in [0,1], see argument alpha in