View source: R/addWhitsunDate.R
addWhitsunDate | R Documentation |
addWhitsunDate
adds extended weekend shading and label for UK Whit Sunday (late spring bank holiday) where x axis is a date. Should work in any time-zoneaddWhitsunDate
adds extended weekend shading and label for UK Whit Sunday (late spring bank holiday) where x axis is a date. Should work in any time-zone
addWhitsunDate(p, yLoc, yMin, yMax, fill = "grey50", alpha = 0.5)
p |
the plot to add them to |
yLoc |
the reltative height of the label (so you can stagger them on a plot) |
yMin |
the smallest y value |
yMax |
the largest y value |
fill |
fill colour (grey50) |
alpha |
alpha value (0.5) |
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.