A custom ggplot2 extension to shade areas in a plot according to provided light hours.
It shades from lights off to lights on. Usage through geom_lights()
or stat_ligths()
Arguments
- lights_on_hour
An integer representing the hour of the day (0-23) when the lights turn on.
- lights_off_hour
An integer representing the hour of the day (0-23) when the lights turn off.
- fill
A string representing the color of the shading.
- alpha
A numeric representing the transparency of the shading, between 0 (transparent) and 1 (opaque).