Description Usage Arguments Value
Wrapper function to create desired visualisation.
1 2 3 4 5 |
data |
A dataframe. |
var_date |
A string with the name of the date-variable. |
format_date |
A string with the format of the date (e.g., "ymd", "ymd_HM"). |
vars_meas |
A vector of variable names that need to be visualised. |
vars_groups |
A vector of specific variable names that are in vars_meas. |
vars_event |
A vector of names of variables that describe events. |
vars_descr |
A vector of names of variables that describe events. |
ID |
A list that must contain the elements ID_var and ID; ID_var must be a string with a variable name, and ID must be a string of the unique identifier. |
type_vis |
The type of visualisation required; the options are "timeseries" (default), "zoom", "barchart", and "network". |
vis_options |
A list with visualisation options. See the functions esm_ts, esm_bc, and esm_nw for further help. |
time_frame |
A vector with the first and last measurement. |
sel_period |
A vector with the first and last measurement for selecting a specific period. |
sel_period_zoom |
A vector with the first and last measurement for selecting a specific period in the "zoom" graph. |
A ggplot-object/graph.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.