Description Usage Arguments Details Examples
View source: R/plot_date_to_period.R
Create plot illustrating how function
date_to_period_year
works.
1 | plot_date_to_period_year(date, month_start = "Jan", label_year_start = TRUE)
|
date |
Dates of events or measurements.
A vector of class |
month_start |
An element of |
label_year_start |
Whether to label a period
by the calendar year at the beginning of the period
or the calendar year at the end. Defaults to |
plot_date_to_period_year
is typically used for
learning or documentation, rather than for
actual data analysis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | plot_date_to_period_year(date = c("2024-03-27",
"2022-11-09"))
## July to June
plot_date_to_period_year(date = c("2024-03-27",
"2022-11-09"),
month_start = "Jul")
## July to June, using the calendar year at
## the end for the label
plot_date_to_period_year(date = c("2024-03-27",
"2022-11-09"),
month_start = "Jul",
label_year_start = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.