plotDailyProfilesOverview: Plot Daily Profiles Overview

View source: R/plotDailyProfilesOverview.R

plotDailyProfilesOverviewR Documentation

Plot Daily Profiles Overview

Description

Plot a Graph with Daily Energy Consumption Profiles by Weekday and Season

Usage

plotDailyProfilesOverview(
  data,
  locTimeZone = "UTC",
  main = "Daily Profiles Overview by Weekday and Season",
  ylab = "Energy Consumption (kWh/h)",
  xlab = "Energy Consumption (kWh/h)",
  col = "black",
  confidence = 95,
  func = "sum",
  seasonlab = c("Winter", "Spring", "Summer", "Fall")
)

Arguments

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 "Before/After Optimization"

ylab

y-axis title, default "Energy Consumption (kWh/month)"

xlab

x-axis title, default "Hour of day"

col

Line colour of median value, default "black"

confidence

Confidence interval for upper ribbon in percent (lower is calculated automatically), default 95 percent

func

Function for data aggregation per hour, either "sum", "mean" or "median", default "sum"

seasonlab

Season labels, concatenated strings with 4 seasons, default c("Winter","Spring","Summer","Fall")

Value

Returns a ggplot object

Examples

data <- readRDS(system.file("sampleData/eboBookEleMeter.rds", package = "redutils"))
plotDailyProfilesOverview(data, locTimeZone = "Europe/Zurich")

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