View source: R/addWeekendRectsDate.R
addWeekendRectsDate | R 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-zoneaddWeekendRectsDate
adds rectangles around the weekends from March 2020 onwards
to plots where the x-axis is a date. Should work in any time-zone
addWeekendRectsDate( p, yMin, yMax, fill = "grey50", alpha = 0.3, labelPos = 0.9 )
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) |
Ben Anderson, b.anderson@soton.ac.uk (original)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.