Skip to content

Commit a4ca050

Browse files
authored
Update label-date documentation (#433)
1 parent 9bcb182 commit a4ca050

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

R/label-date.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#' suffix to the input (ns, us, ms, s, m, h, d, w).
1212
#'
1313
#' @inherit label_number return
14-
#' @param format For `date_format()` and `time_format()` a date/time format
14+
#' @param format For `label_date()` and `label_time()` a date/time format
1515
#' string using standard POSIX specification. See [strptime()] for details.
1616
#'
17-
#' For `date_short()` a character vector of length 4 giving the format
17+
#' For `label_date_short()` a character vector of length 4 giving the format
1818
#' components to use for year, month, day, and hour respectively.
1919
#' @param tz a time zone name, see [timezones()]. Defaults
2020
#' to UTC
@@ -31,9 +31,9 @@
3131
#'
3232
#' two_months <- date_range("2020-05-01", 60)
3333
#' demo_datetime(two_months)
34-
#' demo_datetime(two_months, labels = date_format("%m/%d"))
35-
#' demo_datetime(two_months, labels = date_format("%e %b", locale = "fr"))
36-
#' demo_datetime(two_months, labels = date_format("%e %B", locale = "es"))
34+
#' demo_datetime(two_months, labels = label_date("%m/%d"))
35+
#' demo_datetime(two_months, labels = label_date("%e %b", locale = "fr"))
36+
#' demo_datetime(two_months, labels = label_date("%e %B", locale = "es"))
3737
#' # ggplot2 provides a short-hand:
3838
#' demo_datetime(two_months, date_labels = "%m/%d")
3939
#'

man/date_format.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/label_date.Rd

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)