no_century | R Documentation |
Uses only 2 last numbers of the year.
two_last()
is an alias.
no_century(x)
two_last(x)
x |
a numeric vector to format |
a character vector
p <- ggplot(economics, aes(x = date, y = pop))
p + geom_line() + scale_x_date(labels = no_century)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.