label_year_range | R Documentation |
Special years are assumed to be "named" by the end
year. Simply add one to your input if this is not the
case. - This is intended to be used with
ggplot2
like other labellers, e.g.
scales::label_percent.
label_year_range(prefix = "", suffix = "", digits = NULL, ...)
prefix |
character, prefix to use for all labels (default: "") |
suffix |
character, suffix to use for all labels (default: "") |
digits |
integer, number of digits to use for second number in range (default: NULL, which indicates to guess) |
... |
not used |
function that takes an integer and returns a string
if (interactive()) { label_year_range(prefix = "FY ", digits = 4L)(2001:2010) label_year_range(prefix = "FY ")(2001:2010) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.