compute_timeline_label: Function to compute data to be consumed by...

Description Usage Arguments Value

Description

The function filters the data according to date. It returns data that are in between xmin and xmax. Note that xmin and xmax can either be mapped (using aes(xmin=???)) or being an argument to geom_timeline. If both are specified, the mapped value will be considered. In addition, if n_max and byCol are specified, only n_max rows orderd by byCol are returned. If no byCol is specified, it returns n_max rows randomly.

Usage

1
compute_timeline_label(data, scales, n_max = NA, ...)

Arguments

data

data frame passed from stat / geom

scales

passed from stat/ geom

xmin

date passed from stat / geom, specifying the minimum date to be considered

xmax

date pased from stat /geom, specifying the maximum date to be considered

Value

data frame to be consumed by geom


wingtham/NOAA documentation built on May 24, 2019, 3:51 p.m.