Re: [R] Projecting data on a world map using long/lat

2010-12-13 Thread mathijsdevaan
Hi Patrick, Thanks! That worked perfectly! M -- View this message in context: http://r.789695.n4.nabble.com/Projecting-data-on-a-world-map-using-long-lat-tp3081298p3085834.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Projecting data on a world map using long/lat

2010-12-11 Thread Patrick Hausmann
Hi Mathijs, this should work: library(maptools) library(ggplot2) gpclibPermit() theme_set(theme_bw()) #setwd(C:\\foo) point to your local dir # Data: http://thematicmapping.org/downloads/world_borders.php world.shp - readShapeSpatial(TM_WORLD_BORDERS-0.3.shp) # check for region-id - Use FIPS

Re: [R] Projecting data on a world map using long/lat

2010-12-10 Thread Barry Rowlingson
On Fri, Dec 10, 2010 at 2:21 AM, mathijsdevaan mathijsdev...@gmail.com wrote: Hi, I have a dataset (CSV) with some counts of firms located around the globe. Each count is assigned to the longitude and latitude of the specific location. Now I want to plot these counts on a world map using

Re: [R] Projecting data on a world map using long/lat

2010-12-10 Thread Michael Sumner
Oh, whoops I was looking for the vote up button and accidentally hit Reply All. On Fri, Dec 10, 2010 at 8:25 PM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: On Fri, Dec 10, 2010 at 2:21 AM, mathijsdevaan mathijsdev...@gmail.com wrote: Hi, I have a dataset (CSV) with some counts

Re: [R] Projecting data on a world map using long/lat

2010-12-10 Thread mathijsdevaan
Thanks for the suggestions, but I am not there yet (I'm a real novice). In the code provided by Patrick (see below), I changed the shape input (from sids to world) which I downloaded here: http://thematicmapping.org/downloads/world_borders.php. As a result I also need to change the CNTY_ID and id

[R] Projecting data on a world map using long/lat

2010-12-09 Thread mathijsdevaan
Hi, I have a dataset (CSV) with some counts of firms located around the globe. Each count is assigned to the longitude and latitude of the specific location. Now I want to plot these counts on a world map using dots (size of dots represent the count). I have been unable to find any info on

Re: [R] Projecting data on a world map using long/lat

2010-12-09 Thread Greg Snow
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of mathijsdevaan Sent: Thursday, December 09, 2010 7:21 PM To: r-help@r-project.org Subject: [R] Projecting data on a world map using long/lat Hi, I have a dataset (CSV) with some