addWeekendRectsDateTime: 'addWeekendRectsDateTime' adds rectangles around the weekends...

View source: R/addWeekendRectsDateTime.R

addWeekendRectsDateTimeR Documentation

addWeekendRectsDateTime adds rectangles around the weekends from March 2020 onwards to plots where the x-axis is a dateTime.

Description

addWeekendRectsDateTime adds rectangles around the weekends from March 2020 onwards to plots where the x-axis is a dateTime.

Usage

addWeekendRectsDateTime(
  p,
  yMin,
  yMax,
  alpha = 0.5,
  fill = "grey50",
  labelPos = 0.95
)

Arguments

p

the plot to add them to

yMin

the smallest y value

yMax

the largest y value#'

alpha

alpha value (0.5)

fill

fill colour (grey50)

labelPos

relative position of label (0.9)

Author(s)

Ben Anderson, b.anderson@soton.ac.uk


CfSOtago/gridCarbon documentation built on April 5, 2022, 6:46 a.m.