Description Usage Arguments Value Author(s) Examples
A simple function to overplot an error polygon around a curve. Note that the error is considered as symmetric, and exclusively on y. The polygon will be created from the coordinate tuples (x, (y - err_y)) and (x, (y + err_y)).
1 | overPlotErrorPolygon(x, y, err_y, col = "grey", logPlot = FALSE, ...)
|
x |
A vector containing the x coordinate of the data. |
y |
A vector containing the y coordinate of the data. |
err_y |
A vector containing the error in y. |
col |
The color that will be used for filling the polygon. |
logPlot |
A boolean indicating if the plot is in logscale. |
... |
Further arguments to be passed to polygon(). |
A polygon is overplotted in the active graphics device.
Alberto Krone-Martins
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.