polygon.step | R Documentation |
Draw a filled polygon as a step function
polygon.step(x, y1, y2, border = FALSE, ...)
x |
x coordinates; must be one longer than |
y1 |
lower y coordinates |
y2 |
upper y coordinates |
border |
Color to draw the border; see |
... |
Additional arguments to be passed to |
plot(1:10, 1:10, type='n', ylim=c(0,12))
polygon.step(1:10, 0:8, 2:10, col='gray')
lines(1:10, 1:10, type='s')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.