| splot | R Documentation |
Plot using predefined parameter lists
splot(x, ..., .NULL.rm = TRUE, .plotmethod = "plot")
x |
an object that belongs to a class with |
... |
plot parameters, may be wrapped in |
.NULL.rm |
logical. If |
.plotmethod |
character naming a function, defaults to |
The function calls the plot-method of x, with arguments
given in .... Any simplists contained in the arguments are
unwrapped. If arguments with the same name appear in the list, the last one
is taken.
! Note: Don't use this function inside a plot method, or any other method that
might be called with splot !
Ute Hahn, ute@imf.au.dk
boldly <- simplist(col = "red", lwd = 5)
timidly <- simplist(col = "gray", lwd = 0.5, lty = "dashed")
splot(sin, boldly, to = pi, ylim = c(-1,1))
splot(cos, timidly, add = TRUE, to = pi)
# the last one wins:
splot(sin, boldly, timidly)
splot(sin, timidly, boldly, col = "green")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.