no_century: Year formatter for a two-number format.

View source: R/labellers.R

no_centuryR Documentation

Year formatter for a two-number format.

Description

Uses only 2 last numbers of the year. two_last() is an alias.

Usage

no_century(x)

two_last(x)

Arguments

x

a numeric vector to format

Value

a character vector

Examples

   p <- ggplot(economics, aes(x = date, y = pop))
   p + geom_line() + scale_x_date(labels = no_century)

pttry/ggptt documentation built on May 4, 2023, 2:48 p.m.