Description Usage Arguments Details Value Examples
validateViridis
returns if a string vector contains color representations contained in the viridis package.
1 | validateViridis(string)
|
string |
String vector. |
This function validates a given viridis representation. Valid inputs are viridis, magma, plasma, inferno or cividis. They are part of the viridis package. More information can be found here: viridisLite::viridis.
Returns a logical vector of the same length as the string
input.
1 2 3 4 | validateViridis("viridis")
validateViridis("RED")
validateViridis(c("magma", "plasma"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.