timelines | R Documentation |
Create timelines charts with JavaScript library [timelines-chart](https://github.com/vasturiano/timelines-chart).
timelines( data, line_height = 12, width = NULL, height = NULL, element_id = NULL )
data |
A [data.frame()] (see details) or a list. |
line_height |
Maximum height of each line, in px. |
width, height |
Width and height for the widget. |
element_id |
A custom id for the widget. |
Data format
If a [data.frame()] is used, it must contains the following columns:
* group: Name of the group, used in left-side of the timelines chart. * label: Label for the line. * start: Start of the event. * end: End of the event. * value: Value to be represented, can be continuous or discrete.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.