I would like to plot a map of, say, California, showing the elevation areas. I am sure there must be a source where I can find the dataset for the elevation and maybe there's an implementation in R that allows me to map it. Any ideas would be highly appreciated. -- View this message in context: http://r.789695.n4.nabble.com/elevation-map-with-R-tp4641116.html Sent from the R help mailing list archive at Nabble.com.
You may want to look at package "map" and "map tools" . They might give you some heads up. Best Regards, Bhupendrasinh Thakre Sent from my iPhone On Aug 23, 2012, at 10:35 AM, arcata <italianoperstranieri at hotmail.it> wrote:> I would like to plot a map of, say, California, showing the elevation areas. > I am sure there must be a source where I can find the dataset for the > elevation and maybe there's an implementation in R that allows me to map it. > Any ideas would be highly appreciated. > > > > -- > View this message in context: http://r.789695.n4.nabble.com/elevation-map-with-R-tp4641116.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
There are many ways to do this in R, check out the Spatial Task View on CRAN. The starting point will depend on the data source, but the raster package is probably the best place to start. The USGS provides elevation data for the U.S.: http://ned.usgs.gov/ Files from that source can be read by raster and/or rgdal, but the task view will provide an overview of what is available. There is also the R-Sig-Geo mailing list dedicated to this kind of topic. Cheers, Mike. On Fri, Aug 24, 2012 at 1:35 AM, arcata <italianoperstranieri at hotmail.it> wrote:> I would like to plot a map of, say, California, showing the elevation areas. > I am sure there must be a source where I can find the dataset for the > elevation and maybe there's an implementation in R that allows me to map it. > Any ideas would be highly appreciated. > > > > -- > View this message in context: http://r.789695.n4.nabble.com/elevation-map-with-R-tp4641116.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Michael Sumner Hobart, Australia e-mail: mdsumner at gmail.com