View source: R/plotDailyProfilesDecomposed.R
plotDailyProfilesDecomposed | R Documentation |
Plot a Graph with Decomposed Daily Energy Consumption Profiles by Weekday
plotDailyProfilesDecomposed(
data,
locTimeZone = "UTC",
main = "Daily Profiles - Decomposed",
ylab = "delta Energy Consumption",
k = 672,
digits = 1
)
data |
Dataset to use for plot, minimum 1 hour aggregated. Must be a data.frame with "timestamp YmdHMS, energy consumption" |
locTimeZone |
Time zone of timestamp, default "UTC" |
main |
Main title of plot, default "Daily Profiles - Decomposed" |
ylab |
y-axis title, default "delta Energy Consumption" |
k |
Amount of samples for the rolling window used for the decomosition of the trend component, default 672 which corresponds to 7 days |
digits |
Number of digits for mouse-hover text, default 1 digit e.g. 10.3 |
Returns a ggplot object
data <- readRDS(system.file("sampleData/eboBookEleMeter.rds", package = "redutils"))
plotDailyProfilesDecomposed(data, locTimeZone = "Europe/Zurich")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.