Is there a way to change the marker size in a map based on a certain value?
For example, if I were plotting the population of individual cities and the marker was a circle, the circle would be bigger for the more populated cities.
I was wondering if there was a specific feature for this or if I could add a column to the dataset which has the individual marker sizes for each lat/lon I want to plot.
Thanks!
addCircleMarkers
for argumentradius
it says:a numeric vector of radii for the circles; it can also be a one-sided formula, in which case the radius values are derived from the data (units in meters for circles, and pixels for circle markers)
. So, something likeaddCircleMarkers(..., radius = ~ data$variable)
should produce what you want. – Melvin