![]() ![]() Values = c("mediumturquoise", "blue", "springgreen3", "red", "orange")) + # Change the colours to match the parties' colours # Use the party (winning party) varibale from fed2015 Here is an example: # Load data that will be plotted with riding_binplot Riding_binplot() can be used to create tile cartograms at federal and provincial riding levels (note that only Quebec provincial ridings are supported right now). Library(tidyverse) Tile grid map of Canadian federal electoral ridings Mapcan data are best utilized with ggplot2 library(mapcan) The vignettes provide detailed guides on how mapcan's functions operate. I suggest that you pass the build_vignettes = TRUE to install_github(). Install_github("mccormackandrew/mapcan", build_vignettes = TRUE) Mapcan is an R package that provides convenient tools for plotting Canadian choropleth maps and choropleth alternatives. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |