addShadedNight {AirMonitor}R Documentation

Add nighttime shading to a timeseries plot

Description

Draw shading rectangles on a plot to indicate nighttime hours. The monitor_timeseriesPlot function uses this function internally when specifying shadedNight = TRUE.

Usage

addShadedNight(timeInfo, col = adjustcolor("black", 0.1))

Arguments

timeInfo

dataframe as returned by MazamaTimeSeries::monitor_timeInfo()

col

Color used to shade nights.

Value

No return value, called to add day/night shading to a timeseries plot.


[Package AirMonitor version 0.4.0 Index]