R/dygraph_add_limits.R
dygraph_add_limits.Rd
Dygraph: add (multiple) horizontal lines to plot
dygraph_add_limits(dygraph, limits_df, label_loc = "left", col_limits = "ParameterThreshold", col_label = "label", ...)
dygraph | a dygraph object where (possibly) multiple horizontal lines should be added |
---|---|
limits_df | dataframe containing the limits information to be added to the dygraph (e.g. as retrieved by function get_thresholds()) |
label_loc | Location for horizontal dygraph labels (left or right). (default: "left) |
col_limits | column in limits_df containing the limits values (default: "ParameterThreshold") |
col_label | column in limits_df containing the label values (default: "label") |
... | further arguments passed to dygraphs::dyLimit() |
add limits to existing dygraph object