render_timevis | R Documentation |
Create a timeline visualization using timevis::timevis()
and save using
htmlwidgets::saveWidget()
.
render_timevis(data, groups, file, showZoom = FALSE)
data |
A dataframe containing the timeline items. Each item on the
timeline is represented by a row in the dataframe. |
groups |
A dataframe containing the groups data (optional). See the Groups section below for more details. |
file |
File to save HTML into |
showZoom |
If |
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.
A timeline visualization htmlwidgets
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.