[R] Maps of Canada and some (very) simple instructions
Greg.Snow at intermountainmail.org
Mon Apr 3 23:41:53 CEST 2006
I found a shapefile for a map of Canada at:
http://www.vdstech.com/map_data.htm you can read this in and plot it
using the maptools package (or the sp package and friends if you want
> tmp <- read.shape('c:/maps/canada')
> tmp2 <- Map2poly(tmp)
For adding information to the map there are some examples in the
maptools and sp packages, also look at the help files for symbols as
well as state.vbm and subplot in the TeachingDemos package.
Hope this helps,
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at intermountainmail.org
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of John Kane
> Sent: Monday, April 03, 2006 2:30 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Maps of Canada and some (very) simple instructions
> I am a very new user of R (ver 2.2.1 & Windows XP)
> I would like to see if I can plot some simple data (Number of
> people in certain regions of Canada and within Ontario and
> Quebec. Can anyone suggest a) a souce of Canadian maps and
> b) some simple worked examples of using maps. At the moment
> I have managed to load the map and mapdata libraries but that
> is about the extend of my knowledge.
> So far I have not found anything that is as basic as I need.
> I need something pretty simple.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help