At present, the amazing leaflet
package uses percentiles in its quantile legends; however, sometimes you
want to show the actual values. This function allows you to do just that.
1 | quantile_labels(vec, n)
|
vec |
The column of data that you are visualizing on your choropleth map |
n |
The number of classes you've chosen |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.