diff --git a/R/label-date.R b/R/label-date.R index 730fb7b5..0a64e177 100644 --- a/R/label-date.R +++ b/R/label-date.R @@ -8,7 +8,7 @@ #' "firsts" (e.g. first day of month, first day of day) specially; #' `date_short()` formats changes (e.g. new month, new year) specially. #' `label_timespan()` is intended to show time passed and adds common time units -#' suffix to the input (ns, µs, ms, s, m, h, d, w). +#' suffix to the input (ns, `r "\u03BC"`s, ms, s, m, h, d, w). #' #' @inherit label_number return #' @param format For `date_format()` and `time_format()` a date/time format @@ -131,7 +131,7 @@ label_timespan <- function(unit = c("secs", "mins", "hours", "days", "weeks"), scale_cut = c( 0, "ns" = 1e-9, - "µs" = 1e-6, + "\u03BCs" = 1e-6, "ms" = 1e-3, "s" = 1, "m" = 60, diff --git a/R/trans-date.R b/R/trans-date.R index 7bf67874..9a17ce0c 100644 --- a/R/trans-date.R +++ b/R/trans-date.R @@ -66,6 +66,7 @@ time_trans <- function(tz = NULL) { #' the range of the data. `hms_trans()` provides the same but using standard hms #' idioms and formatting. #' +#' @inheritParams label_timespan #' @export #' @examples #' # timespan_trans allows you to specify the time unit numeric data is diff --git a/man/label_date.Rd b/man/label_date.Rd index eb00a960..9c510d4a 100644 --- a/man/label_date.Rd +++ b/man/label_date.Rd @@ -89,7 +89,7 @@ but uses a slightly different approach: \code{ConciseDateFormatter} formats "firsts" (e.g. first day of month, first day of day) specially; \code{date_short()} formats changes (e.g. new month, new year) specially. \code{label_timespan()} is intended to show time passed and adds common time units -suffix to the input (ns, µs, ms, s, m, h, d, w). +suffix to the input (ns, μs, ms, s, m, h, d, w). } \examples{ date_range <- function(start, days) { diff --git a/man/timespan_trans.Rd b/man/timespan_trans.Rd index adc94257..6ead6f0d 100644 --- a/man/timespan_trans.Rd +++ b/man/timespan_trans.Rd @@ -9,6 +9,9 @@ timespan_trans(unit = c("secs", "mins", "hours", "days", "weeks")) hms_trans() } +\arguments{ +\item{unit}{The unit used to interpret numeric input} +} \description{ \code{timespan_trans()} provides transformations for data encoding time passed along with breaks and label formatting showing standard unit of time fitting