addShadedNight: Add nighttime shading to a timeseries plot

View source: R/addShadedNight.R

addShadedNightR 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.


AirMonitor documentation built on Sept. 27, 2024, 9:06 a.m.