Skip to contents

Create a timeline visualization using timevis::timevis() and save using htmlwidgets::saveWidget().

Usage

render_timevis(data, groups, file, showZoom = FALSE)

Arguments

data

A dataframe containing the timeline items. Each item on the timeline is represented by a row in the dataframe. start and content are the only two required columns. See the Data format section below for more details. For a full list of all supported columns, see the Data Format section in the official visjs Timeline documentation.

groups

A dataframe containing the groups data (optional). See the Groups section below for more details.

file

File to save HTML into

showZoom

If TRUE (default), then include "Zoom In"/"Zoom Out" buttons on the widget.

Value

A timeline visualization htmlwidgets object.

Details

render_timevis() saves the widget with a fixed width (1400, the approximate width of my laptop screen) and returns an htmlwidgets object without a specified width.