plotSeasonalXYBeforeAfter: Plot Seasonal Graph X/Y Before/After Optimization

View source: R/plotSeasonalXYBeforeAfter.R

plotSeasonalXYBeforeAfterR Documentation

Plot Seasonal Graph X/Y Before/After Optimization

Description

Plot a Seasonal Graph with x/y Axis per Month before/after an Optimization

Usage

plotSeasonalXYBeforeAfter(
  data,
  dateOptimization,
  locTimeZone = "UTC",
  main = "Before/After Optimization",
  ylab = "Energy Consumption \n(kWh/month)"
)

Arguments

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)"

Value

Returns a ggplot object

Examples

data <- readRDS(system.file("sampleData/flatHeatingEnergy.rds", package = "redutils"))
plotSeasonalXYBeforeAfter(data, dateOptimization = "2017-09-01")

hslu-ige-laes/redutils documentation built on July 6, 2024, 12:45 a.m.