Skip to contents

Creates a ridgeline plot to show distribution of input/output data by month.

Usage

plot_by_hour_per_month_ridgelines(
  power_data,
  year_to_plot = 2024,
  display_mode = "dark"
)

Arguments

power_data

data frame with timestamp, INPUT, and OUTPUT columns.

year_to_plot

year for which to plot the dataframe.

display_mode

year for which to plot the dataframe.

Value

A ggplot object with a ridgeline plot.

Examples

# Example using a small sample data frame
power_data <- data.frame(
  timestamp = c(
    as.POSIXct("2000-01-01 01:00:00", tz = "UTC"),
    as.POSIXct("2000-01-02 01:00:00", tz = "UTC"),
    as.POSIXct("2000-02-01 01:00:00", tz = "UTC"),
    as.POSIXct("2000-02-02 01:00:00", tz = "UTC")
  ),
  INPUT = c(1.0, 2.0, 3.0, 4.0),
  OUTPUT = c(4.0, 3.0, 2.0, 1.0)
)
plot_by_hour_per_month_ridgelines(power_data)