diff --git a/R/label-date.R b/R/label-date.R index b2735eac..bcf3fb57 100644 --- a/R/label-date.R +++ b/R/label-date.R @@ -163,7 +163,7 @@ format_dt <- function(x, format, tz = "UTC", locale = NULL) { #' `r lifecycle::badge("superseded")` #' #' These functions are kept for backward compatibility; you should switch -#' to [label_date()/[label_time()] for new code. +#' to [label_date()]/[label_time()] for new code. #' #' @keywords internal #' @export diff --git a/R/label-number.R b/R/label-number.R index b5dd04de..fd094f7a 100644 --- a/R/label-number.R +++ b/R/label-number.R @@ -1,6 +1,6 @@ #' Label numbers in decimal format (e.g. 0.12, 1,234) #' -#' Use `label_number()` force decimal display of numbers (i.e. don't use +#' Use `label_number()` to force decimal display of numbers (i.e. don't use #' [scientific][label_scientific] notation). `label_comma()` is a special case #' that inserts a comma every three digits. #' @@ -46,7 +46,7 @@ #' [number options][number_options]. #' @param style_negative A string that determines the style of negative numbers: #' -#' * `"hyphen"` (the default): preceded by a standard hypen `-`, e.g. `-1`. +#' * `"hyphen"` (the default): preceded by a standard hyphen `-`, e.g. `-1`. #' * `"minus"`, uses a proper Unicode minus symbol. This is a typographical #' nicety that ensures `-` aligns with the horizontal bar of the #' the horizontal bar of `+`. diff --git a/R/pal-dichromat.R b/R/pal-dichromat.R index ed454a30..38aee521 100644 --- a/R/pal-dichromat.R +++ b/R/pal-dichromat.R @@ -8,7 +8,7 @@ #' show_col(pal_dichromat("BluetoOrange.10")(10)) #' show_col(pal_dichromat("BluetoOrange.10")(5)) #' -#' # Can use with gradient_n to create a continous gradient +#' # Can use with gradient_n to create a continuous gradient #' cols <- pal_dichromat("DarkRedtoBlue.12")(12) #' show_col(pal_gradient_n(cols)(seq(0, 1, length.out = 30))) #' } diff --git a/man/comma.Rd b/man/comma.Rd index bb03854a..b2ae6d04 100644 --- a/man/comma.Rd +++ b/man/comma.Rd @@ -95,7 +95,7 @@ The default (\code{NULL}) retrieves the setting from the \item{style_negative}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. diff --git a/man/date_format.Rd b/man/date_format.Rd index 6de951f4..527ecd64 100644 --- a/man/date_format.Rd +++ b/man/date_format.Rd @@ -28,6 +28,6 @@ can see a complete list of supported locales with \ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#superseded}{\figure{lifecycle-superseded.svg}{options: alt='[Superseded]'}}}{\strong{[Superseded]}} These functions are kept for backward compatibility; you should switch -to [label_date()/\code{\link[=label_time]{label_time()}} for new code. +to \code{\link[=label_date]{label_date()}}/\code{\link[=label_time]{label_time()}} for new code. } \keyword{internal} diff --git a/man/label_bytes.Rd b/man/label_bytes.Rd index 266649bc..5992e9a5 100644 --- a/man/label_bytes.Rd +++ b/man/label_bytes.Rd @@ -55,7 +55,7 @@ The default (\code{NULL}) retrieves the setting from the \link[=number_options]{number options}.} \item{\code{style_negative}}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. diff --git a/man/label_currency.Rd b/man/label_currency.Rd index c0118d92..f7ed7d23 100644 --- a/man/label_currency.Rd +++ b/man/label_currency.Rd @@ -57,7 +57,7 @@ The default (\code{NULL}) retrieves the setting from the \link[=number_options]{number options}.} \item{\code{style_negative}}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. diff --git a/man/label_date.Rd b/man/label_date.Rd index 928f8cd5..c2420e2b 100644 --- a/man/label_date.Rd +++ b/man/label_date.Rd @@ -83,7 +83,7 @@ The default (\code{NULL}) retrieves the setting from the \link[=number_options]{number options}.} \item{\code{style_negative}}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. diff --git a/man/label_number.Rd b/man/label_number.Rd index 322f20db..43d97de7 100644 --- a/man/label_number.Rd +++ b/man/label_number.Rd @@ -72,7 +72,7 @@ The default (\code{NULL}) retrieves the setting from the \item{style_negative}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. @@ -116,7 +116,7 @@ they work similarly for all scales, including those that generate legends rather than axes. } \description{ -Use \code{label_number()} force decimal display of numbers (i.e. don't use +Use \code{label_number()} to force decimal display of numbers (i.e. don't use \link[=label_scientific]{scientific} notation). \code{label_comma()} is a special case that inserts a comma every three digits. } diff --git a/man/label_number_si.Rd b/man/label_number_si.Rd index c3a9eeaf..73bcd1be 100644 --- a/man/label_number_si.Rd +++ b/man/label_number_si.Rd @@ -48,7 +48,7 @@ The default (\code{NULL}) retrieves the setting from the \link[=number_options]{number options}.} \item{\code{style_negative}}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. diff --git a/man/label_ordinal.Rd b/man/label_ordinal.Rd index 77da0587..09d9e058 100644 --- a/man/label_ordinal.Rd +++ b/man/label_ordinal.Rd @@ -54,7 +54,7 @@ The default (\code{NULL}) retrieves the setting from the \link[=number_options]{number options}.} \item{\code{style_negative}}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. diff --git a/man/label_percent.Rd b/man/label_percent.Rd index 4fe707a8..dedb29a7 100644 --- a/man/label_percent.Rd +++ b/man/label_percent.Rd @@ -61,7 +61,7 @@ The default (\code{NULL}) retrieves the setting from the \link[=number_options]{number options}.} \item{\code{style_negative}}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. diff --git a/man/number.Rd b/man/number.Rd index 57696e96..cb38119e 100644 --- a/man/number.Rd +++ b/man/number.Rd @@ -72,7 +72,7 @@ The default (\code{NULL}) retrieves the setting from the \item{style_negative}{A string that determines the style of negative numbers: \itemize{ -\item \code{"hyphen"} (the default): preceded by a standard hypen \code{-}, e.g. \code{-1}. +\item \code{"hyphen"} (the default): preceded by a standard hyphen \code{-}, e.g. \code{-1}. \item \code{"minus"}, uses a proper Unicode minus symbol. This is a typographical nicety that ensures \code{-} aligns with the horizontal bar of the the horizontal bar of \code{+}. diff --git a/man/pal_dichromat.Rd b/man/pal_dichromat.Rd index a0ba08ca..604171ed 100644 --- a/man/pal_dichromat.Rd +++ b/man/pal_dichromat.Rd @@ -21,7 +21,7 @@ if (requireNamespace("dichromat", quietly = TRUE)) { show_col(pal_dichromat("BluetoOrange.10")(10)) show_col(pal_dichromat("BluetoOrange.10")(5)) - # Can use with gradient_n to create a continous gradient + # Can use with gradient_n to create a continuous gradient cols <- pal_dichromat("DarkRedtoBlue.12")(12) show_col(pal_gradient_n(cols)(seq(0, 1, length.out = 30))) }