plot_components: Function to plot components according to a configuration...

View source: R/plotting.R

plot_componentsR Documentation

Function to plot components according to a configuration table

Description

Function to plot components according to a configuration table

Usage

plot_components(df, plot_conf, ylab, legend_width = NULL, css_file = NULL, ...)

Arguments

df

data.frame or tibble, first column of name datetime being of class datetime and rest of columns being numeric

plot_conf

tibble of the plot configuration with columns variable, label, color, fill and width to pass to dygraph.

ylab

character, label of y axis

legend_width

integer, width (in pixels) of the div which shows the legend.

css_file

character path to a CSS file to format dygraph plot. If NULL, custom CSS is applied to dygraph.

...

extra arguments to pass to dygraphs::dyOptions function

Details

Attention! By default this function applies dutils CSS file.

Value

dygraphs plot


mcanigueral/dutils documentation built on Aug. 22, 2024, 11:34 a.m.