format_timeline_for_state_time_plotting: Prepare state timeline data for stacked area plotting

Description Usage Arguments Value

Description

Groups by state and time, adds entries with count of 0 for the states that don't appear in the data, calculates the height of each ribbon and reorders the states

Usage

1

Arguments

dt

timeline data.table with state information

Value

a data.table appropriate for the stacked plot


triglian/asqr documentation built on May 31, 2019, 7:53 p.m.