R可以用于GIS吗? [英] Can R be used for GIS?

查看:140
本文介绍了R可以用于GIS吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一些GIS图,我想知道是否可以使用R。以下是我在概念上与我想要做的相似的情节的一些示例:


  • 温度图(或等值线图),颜色(或高度)由国家GDP决定。因此,状态边界会在结果图中产生不连续性。

  • 美国的高度用于数据的温度图。在这种情况下,结果图应该跨越州界平滑变化。

  • 以上2个图的总和(应用了一些缩放)。



我刚刚开始学习R,并想知道它是否适合这类工作。查看ggplot2的 coord_map ,它看起来可能会在美国叠加数据。但获取数据以尊重州界可能会非常困难。



任何建议?

解决方案

首先, c $ c> maps , mapproj maptools 软件包,地图功能,投影等等来创建你可以想到的任何地图。 然后是 sp 包,其中包含其他内容 - 允许您绘制任何类型的数据从 GADM 数据库加载。



但最重要的是,的空间项目页面,它为您提供了更多信息,包括邮件列表的链接,以及R和空间数据。如果这还不够,您可以使用空间数据的 CRAN Task View页面,列出100+包做你想做的事情。



想想你现在拥有了吗?还有更多! 待售图书免费博客可以帮助您找到如何做你想做的事情。如果你有一些具体的问题,你可以随时来 StackOverflow ,或使用任何邮寄 列表到得到一些更多的帮助。



所以你看:这是R.没有if。只有如何。(西蒙布隆伯格)



以Google搜寻为主。 b $ b

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?

解决方案

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.

这篇关于R可以用于GIS吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆