I am trying to rbind the US and Canada census maps using ggplot2.
us <- readOGR(dsn = "00-raw/usmaps/us/", layer = "co99_d90")
canada <- readOGR(dsn = "00-raw/gcd_000b11a_e/", layer = "canada")
canada$id <- as.numeric(canada$id)
us$id <- as.numeric(us$id)
canada$id <- canada$id + length(unique(us$id))
na <- rbind(canada, us)
p <- ggplot() +
geom_polygon(data = na, aes(x = long, y = lat, group = group, fill = pop),
color = "black", size = 0.25) +
theme_nothing(legend = TRUE)
But there is some weird line.
The sources of the shapefiles are the following:
http://www12.statcan.gc.ca/census-recensement/2011/geo/bound-limit/files-fichiers/gcd_000b11a_e.zip
www2.census.gov/geo/tiger/PREVGENZ/co/co90shp/co99_d90_shp.zip
I really need those shapefiles since I want my borders to represent the counties for the US and the census division for Canada.