Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can R be used for GIS? [closed]

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:

  • A temperature plot (or contour plot) of the United States, with color (or height) determined by state GDP. Thus, state boundaries would give discontinuities in the resulting plot.
  • A temperature plot of the United States where altitude is used for data. In this case, the resulting plot should vary smoothly across state boundaries.
  • The sum of the above 2 plots (with some scaling applied).

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?

like image 814
stretch44 Avatar asked Apr 22 '11 15:04

stretch44


People also ask

Can R be used for GIS?

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.

Can you map in R?

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.

Which function joins different classes of objects with common characteristics to a higher level class?

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.


1 Answers

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.

like image 55
Joris Meys Avatar answered Sep 22 '22 09:09

Joris Meys