Stats Canada released new census data in false northing and easting format. The shapefile from 2011 on long/lat format worked fine, but now the map is rotated and distorted.
The code below downloads the shapefiles, extracts them and plots the data. I tried various "coord_" options without any success. Please help!
library(rgdal)
library(rgeos)
library(scales)
library(ggplot2)
library(dplyr)
library(tidyr)
library(ggmap)
library(maptools)
temp <- tempfile()
download.file("http://www12.statcan.gc.ca/census-
recensement/2011/geo/bound-limit/files-
fichiers/2016/lccs000a16a_e.zip",temp)
unzip(temp)
unlink(temp)
Boundaries2016<-readOGR(getwd(), "lccs000a16a_e")
Boundaries2016<-Boundaries2016[Boundaries2016@data$PRNAME %in%
c("Manitoba","Saskatchewan","Alberta"),]
Boundaries_df<-fortify(Boundaries2016, region="CCSUID")
plotData<-Boundaries_df
p <- ggplot() +
geom_polygon(data = plotData, aes(x = long, y = lat, group = group), color
= "black", size = 0.25)
#+coord_map()
p