I'd like to create some GIS plots, and I'm wondering if R can be used for this. Here are some examples of plots I'd similar in concept to those I'd like to make:
I'm just starting to learn R, and want to know if it would be the right tool for this kind of job. Looking at the coord_map of ggplot2, it looks like superimposing data onto the US is possible. But getting data to respect state boundaries could be very difficult.
Any advice?
Although R was not originally designed to work with spatial data formats, it has long had a strong geospatial developer community and can be used as a powerful GIS platform with the addition of external packages.
Static mapping in R is straightforward with the plot() function, as we saw in Section 2.2. 3. It is possible to create advanced maps using base R methods (Murrell 2016). The focus of this chapter, however, is cartography with dedicated map-making packages.
Generalization is a function that joins different classes of objects with common characteristics to a higher level (generalized) class. Measurement functions allow the calculation of distances, lengths, or areas.
First, you have the maps
, mapproj
and maptools
packages, that give you a wide variety of map functions, projections, and so on to create about any map you can think of.
Then there is the sp
package, which -among other things- allows you to plot any kind of data you load from the GADM database.
But most of all, there is the spatial projects page of R which gives you a whole lot more information, including links to mailing lists, to get going with R and spatial data. And if that's not enough, you have the CRAN Task View page for spatial data, listing 100+ packages to do what you want to do.
Think you had it now? There is more! Both books for sale and free blogs can help you finding out how to do what you want to do. And if you have some specific question, you can always come to StackOverflow , or use any of the mailing lists to get some more help.
So you see : This is R. There is no if. Only how. (Simon Blomberg)
powered by googling.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With