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

View source: R/addWeekendRectsDate.R

addWeekendRectsDateR Documentation

addWeekendRectsDate adds rectangles around the weekends from March 2020 onwards to plots where the x-axis is a date. Should work in any time-zone

Description

addWeekendRectsDate adds rectangles around the weekends from March 2020 onwards to plots where the x-axis is a date. Should work in any time-zone

Usage

addWeekendRectsDate(
  p,
  yMin,
  yMax,
  fill = "grey50",
  alpha = 0.3,
  labelPos = 0.9
)

Arguments

p

the plot to add them to

yMin

the smallest y value

yMax

the largest y value

fill

fill colour (grey50)

alpha

alpha value (0.3)

labelPos

relative position of label (0.9)

Author(s)

Ben Anderson, b.anderson@soton.ac.uk (original)


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