View source: R/plotDailyProfilesOverview.R
plotDailyProfilesOverview | R Documentation |
Plot a Graph with Daily Energy Consumption Profiles by Weekday and Season
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")
)
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") |
Returns a ggplot object
data <- readRDS(system.file("sampleData/eboBookEleMeter.rds", package = "redutils"))
plotDailyProfilesOverview(data, locTimeZone = "Europe/Zurich")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.