Description Usage Arguments Value See Also Examples
This function is minor modificated version of overwriteEllipsis
.
The only difference is that don't overwrite conflict argments.
1 | softwriteEllipsis(..., append = NULL, warn = F)
|
... |
fixed and given arguments. |
append |
argments list to be appended. |
warn |
if |
overwrited ellipsis.
1 2 3 4 5 6 7 8 9 10 11 12 | # plot function with xlim = c(0, 2 * pi) and col = 'red' defaultly
plot2pi <- function(x, ...){
elp <- overwriteEllipsis(..., x = x, xlim = c(0, 2 * pi))
elp <- softwriteEllipsis(..., append = elp, col = 'red')
do.call(plot, elp)
}
# this example is evaluated as col = 'red'
plot2pi(sin)
# this example is evaluated as col = 'blue'
plot2pi(sin, col = 'blue')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.