I want to make a cartogram with data from my country Suriname. This diagram should show the location on the map together with the number of the schools. The only data I have is:
District | Ressort | Coordinaten | Schoolcode |
---|---|---|---|
Paramaribo | Beekhuizen | 5°30'29,88"NB, 55°10'44,04"WL | A1 |
Paramaribo | Beekhuizen | 5°30'29,88"NB, 55°10'44,04"WL | A2 |
Paramaribo | Centrum | 5°30'29,9"NB, 55°10'44,0"WL | A3 |
Paramaribo | Beekhuizen | 5°30'29,88"NB, 55°10'44,04"WL | A4 |
Paramaribo | Welgelegen | 5°50'33"NB, 55°13'7"WL | A5 |
Wanica | Nieuwe Grond | 5°45'NB, 55°13'WL | A6 |
Wanica | Domburg | 5°42'NB, 55°5'WL | A7 |
Wanica | Domburg | 5°42'NB, 55°5'WL | A8 |
I checked for instruction video and found instructions about constructing a cartogram with zip codes and with the longitude and latitude. Is it possible to use this data in r to construct a cartogram? If yes, can you give me some instruction how to do that? If the answer is no, is it possible to convert this column into the longitude and latitude or even zipcode of data? If yes, how can I do that?
Thank you in advance.
Here is something that should get you started; additional comments are inline.
Load necessary libraries
Download Suriname shape files
Data are stored in folder ./data. The ZIP file also contains a PDF with metadata information. I suggest taking a look.
Read Suriname district shapefile
Parse local data
Plot
leaflet
allows for a lot of customisation; for example, you can tweak the marker labels, add resort boundaries, etc.Appendix: Sample data