ym_label: Format x-axislabels (dates) as year/month in two lines

View source: R/utils.R

ym_labelR Documentation

Format x-axislabels (dates) as year/month in two lines

Description

Format x-axislabels (dates) as year/month in two lines

Usage

ym_label(x)

Arguments

x

Date vector, usually takes as input the output of breaks in ggplot2::scale_x_date

Value

Character vetor

Examples

dates <- seq.Date(Sys.Date(), Sys.Date() + 120, by = "month")
ym_label(dates)

schoulten/ipca documentation built on May 27, 2022, 10:05 p.m.