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 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 whether >> this is possible and if so, how? Can you please help me? Thanks! >> > > Plotting points is trivial - plot(data$x,data$y,pch=19,cex=data$size) > will do for a start. i'm guessing your real problem is when you say > 'on a world map'. > > How detailed a world map do you need? There's an outline one in the > 'maps' package, or you should be able to find a shapefile of the world > on the web somewhere and use that via the rgdal package. > > Other options include making a KML file of your points and overlaying > on google earth. Or getting google map tiles and overlaying on > that.... Or exporting your data to a GIS format and doing the pretty > map in something like Quantum GIS. What are you trying to do exactly? > > also, you might want to post to r-sig-geo > > > > Barry > > ______________________________________________ > R-help@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 Institute for Marine and Antarctic Studies, University of Tasmania Hobart, Australia e-mail: mdsum...@gmail.com ______________________________________________ R-help@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.