This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a quasi replication of the correlation matrix heatmap viz from Seaborn, | |
# using R and ggplot | |
# see: http://stanford.edu/~mwaskom/software/seaborn/examples/structured_heatmap.html | |
library(data.table) | |
library(ggplot2) | |
# get data | |
brain_url <- paste0('https://raw.githubusercontent.com/', | |
'mwaskom/seaborn-data/master/brain_networks.csv') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(leaflet) | |
library(readxl) # for read_excel() | |
library(ggmap) # for geocode() | |
library(fields) # for rdist.earth() | |
### read data from excel ---- | |
# download to default working directory | |
download.file('https://dl.dropboxusercontent.com/u/12146012/place_names.xlsx', | |
destfile='place_names.xlsx') | |
places <- read_excel('place_names.xlsx') |
NewerOlder