plotDailyProfilesDecomposed: Plot Daily Profiles Decomposed

View source: R/plotDailyProfilesDecomposed.R

plotDailyProfilesDecomposedR Documentation

Plot Daily Profiles Decomposed

Description

Plot a Graph with Decomposed Daily Energy Consumption Profiles by Weekday

Usage

plotDailyProfilesDecomposed(
  data,
  locTimeZone = "UTC",
  main = "Daily Profiles - Decomposed",
  ylab = "delta Energy Consumption",
  k = 672,
  digits = 1
)

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

Value

Returns a ggplot object

Examples

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

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