Dear R people, I am wondering how difficult it would be to produce graphs based on maps in R (like "a county is red where x is high"). I reckon this requires the coordinates for the polygons that make up the map and also a mapping to a set of identifiers to assign colours, hatches, etc. Would it be possible to pass R a vector graphics of the map and back out the polygon definitions from that (supposing that the map is drawn the same way, ie redundantly with full polygons)? If yes, there could be a matrix with the identifiers and the polygon parameters.... If no, is there any other/better idea. Has anyone tried this before? Thanks, Zsbombor -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 7 Nov 2001 10:56:05 +0000, you wrote in message <20011107105604.C1491 at socrates-a.ucl.ac.uk>:>Dear R people, > >I am wondering how difficult it would be to produce graphs based on maps in R (like "a county is red >where x is high"). I reckon this requires the coordinates for the polygons that make up the >map and also a mapping to a set of identifiers to assign colours, hatches, etc. >Would it be possible to pass R a vector graphics of the map and back out the polygon definitions from >that (supposing that the map is drawn the same way, ie redundantly with full polygons)? If yes, there >could be a matrix with the identifiers and the polygon parameters.... If no, is there any other/better >idea. Has anyone tried this before?There's a maps library for S that can do this. It's incompletely ported to R; currently it mostly works on Unix, and just recently I got it working on Windows, but it's not packaged up and ready to distribute yet. It's quite large (there's a lot of data in a world map), so I won't email it to you, but if you want the Unix version, you can get it from Ray Brownrigg's ftp site: ftp://ftp.mcs.vuw.ac.nz/pub/statistics/map/ Duncan Murdoch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thank you both for the pointer (without the STFW I deserved). I am currently downloading the package from the suggested mirror. I use Linux, so assuming it is Unix, I have hope. To get a map I need (Hungary, with counties, etc inside), it seems that I need to negotiate with some local people thigh. Thanks, Zsombor -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thank you for the help. I have installed the functions and the Intel version maps. I have tried the world map and those of the USA -- they look nice and useful. I am offered actually offered MapInfo maps, but have no idea how to convert them to use in this framework. Moreover, I do not have MapInfo itself, so I can not check wherther it is willing to output its knowledge in any useful form. Is there any experience with this? Thanks, Zsombor -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello.> Thank you for the help. I have installed the functions and the Intel > version maps.This Intel version for linux or win32?> I am offered actually offered MapInfo maps, but have no idea how to > convert them to use in this framework. Moreover, I do not have MapInfo > itself, so I can not check wherther it is willing to output its knowledge > in any useful form. Is there any experience with this? >Are your files are in MIF or TAB. You will get a C++ library which can read & write files in both formats. And Win binaries are also available. http://pages.infinit.net/danmo/e00/index-mitab.html For another GIS file converters, you can get many infos in the following site. http://www.freegis.org/index.en.html -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._