Description Usage Arguments Author(s) See Also Examples
help self-defined function to set default values
1 | set.default(input,default,output)
|
input |
a list contain input value |
default |
a list contain defalut value |
output |
a list contain value that you want to output when the input was as the same as default. |
Weibin Huang
Fastcorrplot()
1 2 3 4 5 6 | # example :set default for Fastcorrplot()
default <- c(rep(list(NULL),7))
library(grDevices);col <- colorRampPalette(c("blue","white","red"))(100)
input <- list(lower.col = lower.col,upper.col =upper.col,upper = upper,tl.pos = tl.pos,tl.col=tl.col,tl.srt=tl.srt,diag = diag)
do <- list(lower.col = col,upper.col =col,upper = "ellipse",tl.pos = "lt",tl.col="black",tl.srt=45,diag = "l")
output <- set.default(input,default,output)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.