Description Usage Arguments Details Author(s)
A function which calculates the position of number and position of dots in the final plot for each row of data.
1 |
df |
the merged df of a shapefile and population data |
col_names |
a vector of col_names to select from this merged data. If selecting all columns, can leave as NULL |
n_per_dot |
the number of n people in each category for every dot |
credit to Paul Campbell for the function in his blogpost https://www.cultureofinsight.com/blog/2018/05/02/2018-04-08-multivariate-dot-density-maps-in-r-with-sf-ggplot2/
Paul Campbell, Robert Hickman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.