Skip to content
Prev 14223 / 29559 Next

Plotting data on Canadian maps

Barry Rowlingson replied to a query on R-Help:
I've downloaded the .Rdata versions of the maps of Canada, 
CAN_adm[1-4].RData but can't find information on the contents of these 
SPDataFrames, other than direct exploration:

 > load("CAN_adm1.RData")
 > class(gadm)
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
 > names(gadm)
  [1] "PID"       "ID_0"      "ISO"       "NAME_0"    "ID_1" 
"NAME_1"    "NL_NAME_1" "VARNAME_1"
  [9] "TYPE_1"    "ENGTYPE_1"
 > gadm$NAME_1
  [1] "Alberta"                   "British Columbia"          "Manitoba" 

  [4] "New Brunswick"             "Newfoundland and Labrador" "Northwest 
Territories"
  [7] "Nova Scotia"               "Nunavut"                   "Ontario" 

[10] "Prince Edward Island"      "Qu?bec" 
"Saskatchewan"
[13] "Yukon"

I'd like to try plotting some data on the map of Ontario.  Does anyone 
have an example or sources for such data?

-Michael