View source: R/plotSeasonalXYBeforeAfter.R
plotSeasonalXYBeforeAfter | R Documentation |
Plot a Seasonal Graph with x/y Axis per Month before/after an Optimization
plotSeasonalXYBeforeAfter(
data,
dateOptimization,
locTimeZone = "UTC",
main = "Before/After Optimization",
ylab = "Energy Consumption \n(kWh/month)"
)
data |
Dataset to use for plot with montly aggregated data. Must be a data.frame with "timestamp, energy consumption" |
dateOptimization |
Date of Optimization in format YYYY-MM-DD |
locTimeZone |
Time zone of timestamp, default "UTC" |
main |
Main title of plot, default "Before/After Optimization" |
ylab |
y-axis title, default "Energy Consumption (kWh/month)" |
Returns a ggplot object
data <- readRDS(system.file("sampleData/flatHeatingEnergy.rds", package = "redutils"))
plotSeasonalXYBeforeAfter(data, dateOptimization = "2017-09-01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.