get_break_labels: Create ggplot breaks/labels/limits that make sample period...

Description Usage Arguments Value Examples

View source: R/ggplots.R

Description

Create ggplot breaks/labels/limits that make sample period easily to understand

Usage

1
get_break_labels(dateSeries, dY = 1, labeltype = "yy")

Arguments

dateSeries

A date series from lubridate::ymd()

dY

An integer. The span between two break years. Default=1

labeltype

A character, either 'yyyy' or 'yy', specifies how you want the year to be labels.

Value

A list of 3: breaks, labels and limits, for you to use in scale_... in ggplot2

Examples

1
none

tpemartin/econDV documentation built on Feb. 12, 2021, 5:56 a.m.