Hello everybody, I'm an absolute newbe in R, so please be gentle to me. I am looking for a german map in the package maps by Becker and Wilks. After that I want to draw the German cities from world.cities of this package in the map and want to draw further a line from Berlin to Munich. Has anybody an idea? Thank you so much and sorry for the question! Best regards from Berlin, Maja! --
Hello everybody, I'm an absolute newbe in R, so please be gentle to me. I am looking for a german map in the package maps by Becker and Wilks. After that I want to draw the German cities from world.cities of this package in the map and want to draw further a line from Berlin to Munich. Has anybody an idea? Thank you so much and sorry for the question! Best regards from Berlin, Maja! -- View this message in context: http://www.nabble.com/German-Map-in-package-maps-tf3798578.html#a10745386 Sent from the R help mailing list archive at Nabble.com.
On Wed, 23 May 2007, Maja Schr?ter wrote:> Hello everybody, > > I'm an absolute newbe in R, so please be gentle to me. > > I am looking for a german map in the package maps by Becker and Wilks. > > After that I want to draw the German cities from world.cities of this > package in the map and want to draw further a line from Berlin to Munich. > > Has anybody an idea? >There is no germany-only map in the maps databases, but the following might be close to what you want:> library(mapdata) # the world database in the maps package# probably isn't high enough resolution> map("worldHires", "Germany") > map.cities(country="Germany", minpop=1e6, capital=1) > lines(world.cities[world.cities$name %in% c("Berlin", "Munich") &world.cities$country=="Germany", c("long", "lat")])>HTH Ray Brownrigg