timelines: Timelines chart

View source: R/timelines.R

timelinesR Documentation

Timelines chart

Description

Create timelines charts with JavaScript library [timelines-chart](https://github.com/vasturiano/timelines-chart).

Usage

timelines(
  data,
  line_height = 12,
  width = NULL,
  height = NULL,
  element_id = NULL
)

Arguments

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.

Details

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.


dreamRs/timelineschart documentation built on Oct. 6, 2022, 2:13 p.m.