spZone | R Documentation |
A wrapper function to annotate x axis range for ggplot2 graphs
spZone(xmin, xmax, fill = "red", alpha = 0.2, ...)
## Default S3 method:
spZone(xmin, xmax, fill = "red", alpha = 0.2, ...)
## S3 method for class 'formula'
spZone(x, fill = "red", alpha = 0.2, ...)
xmin |
Minimum value of x axis. |
xmax |
Maximum value of x axis. |
fill |
Fill color. |
alpha |
Fill transperency. |
... |
further arguments to |
x |
formula indicating min and max values ( |
qplot_sp(flu) + spZone(425~450)
qplot_sp(flu) + spZone(460,490, fill = "green")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.