pal_numeric | R Documentation |
Function to generate a color palette for a variable based on a supplied dataframe
pal_numeric(var, colors, df, reverse = FALSE)
var |
A variable in the dataframe, supplied as a string |
colors |
Colors to supply to the palette argument in a colorNumeric() function |
df |
A spatial dataframe with a stripped geography |
reverse |
Whether to reverse the generated color palette |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.