Description Usage Arguments Details Examples
View source: R/plot_date_to_triangle.R
Create plot illustrating how function
date_to_triangle_year
works.
1 2 3 4 5 6 7 | plot_date_to_triangle_year(
date,
dob,
month_start = "Jan",
label_year_start = TRUE,
show_months = FALSE
)
|
date |
Dates of events. |
dob |
Dates of birth. |
month_start |
An element of |
show_months |
Whether to include vertical
lines showing boundaries between months.
Defaults to |
plot_date_to_triangle_year
is typically used for
instruction or documentation, rather than for
actual data analysis.
1 2 3 4 5 6 7 8 9 10 11 | plot_date_to_triangle_year(date = c("2024-05-27",
"2024-11-09"),
dob = c("2020-03-13",
"2021-08-24"))
## start on 1 July, rather than 1 January
plot_date_to_triangle_year(date = c("2024-05-27",
"2024-11-09"),
dob = c("2020-03-13",
"2021-08-24"),
month_start = "July")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.