Skip to content

Instantly share code, notes, and snippets.

View aster-hu's full-sized avatar
🏠
Working from home

Aster Hu aster-hu

🏠
Working from home
View GitHub Profile
@aster-hu
aster-hu / toronto_mayoral_election_map.R
Last active July 10, 2023 23:55
Create interactive 2023 Toronto mayoral election map in R with leaflet
# See the blog post for details:
# https://asterhu.com/post/2023-07-11-toronto-mayor-by-election-analysis/
library(opendatatoronto)
library(dplyr)
library(tidyr)
library(sf)
library(leaflet)
library(htmltools)