Description Usage Arguments Value Examples
View source: R/DELEDotDensityMap.R
DotDensity mapping data by state
1 2 3 4 5 | DELEDotDensityMap(data, DELEcode, var, DotWeight = 0.5,
polyEdgColor = "blue", OneDFor = 50,
dotColor = "lightgoldenrodyellow",
prov = providers$NASAGIBS.ViirsEarthAtNight2012,
polyColor = "midnightblue")
|
data |
a data set that contains at least your delegations and the variable to represent |
DELEcode |
a numeric that indicate the colum number that contains the delegations code |
var |
a numeric that indicate the colum number that contains your variable |
DotWeight |
the dot weight |
polyEdgColor |
the boundries color |
OneDFor |
the unit (exp: 60 to present 60 votes per dot ) |
dotColor |
the dots color |
prov |
: it have to be in format : providers$... and the provider you want to have in the background you can see all the providers by typing View(providers) or going to https://leaflet-extras.github.io/leaflet-providers/preview/ where you can fin all the providers and how they look like |
polyColor |
the polygons filling color |
a map with your data
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.