Description Usage Arguments Value Examples
This function checks the content of a palette definition, and appends some missing columns. It is mainly used internally, but can be invoked by the uses to see what it does.
1 | parse_palette(palette, verbose = TRUE)
|
palette |
data.frame containing the palette definition |
verbose |
logical: print some information? |
modified palette data.frame
1 2 3 4 | p0 <- data.frame(substance="any", color="red")
str(p0)
p1 <- parse_palette(p0)
str(p1) # Should be the same!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.