[R] Maps of Canada and some (very) simple instructions

Gregory Snow 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
more control):

> library(maptools)
> tmp <- read.shape('c:/maps/canada')
> tmp2 <- Map2poly(tmp)
> plot(tmp2)

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
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111

> -----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
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html

More information about the R-help mailing list