This file contains 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
license: mit | |
height: 620 | |
scrolling: no | |
border: no |
This file contains 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
license: mit | |
scrolling: no | |
border: no |
This file contains 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
<!doctype html> | |
<html lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title>Three-way scatter</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script type='text/javascript' src='https://unpkg.com/d3'></script> | |
<script type='text/javascript' src='https://unpkg.com/d3-selection-multi'></script> |
This file contains 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
needs(tidyverse, magrittr, jsonlite, scales) | |
loopTimer <- function(rows){ | |
col1 <- runif (rows, 0, 2) | |
col2 <- rnorm (rows, 0, 2) | |
col3 <- rpois (rows, 3) | |
col4 <- rchisq (rows, 2) | |
df <- data.frame (col1, col2, col3, col4) | |
This file contains 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
license: mit | |
height: 545 | |
scrolling: no | |
border: no |
We can't make this file beautiful and searchable because it's too large.
This file contains 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
fips,stname,ctyname,fullname,year,estimate | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2000,44021 | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2001,44889 | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2002,45909 | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2003,46800 | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2004,48366 | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2005,49676 | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2006,51328 | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2007,52405 | |
01001,Alabama,Autauga County,"Autauga County, Alabama",2008,53277 |
This file contains 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
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title>Canvas City</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<canvas></canvas> |
This file contains 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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://unpkg.com/d3@5"></script> | |
<script src="https://unpkg.com/d3-selection-multi"></script> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
border: 0; |
This file contains 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
# Data is the UN's Medium-variant population projections, available at https://population.un.org/wpp/ | |
data %>% | |
filter(Sex != "Both" & A3 %in% c("GBR", "RUS", "IND", "CHN", "RWA", "GRC") & Year %in% 2018:2060) %>% | |
as.tibble %>% | |
mutate( | |
group = paste0(Year, Sex), AgeGrp = as.numeric(AgeGrp), | |
Location = Location %>% gsub("n Federation","",.) | |
) %>% | |
ggplot(aes(AgeGrp, Value, col=Sex, group=group)) + |
This file contains 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
needs(tidyverse, magrittr, scales) | |
jose.porto <- read_csv("http://api.clubelo.com/porto") | |
jose.chelsea <- read_csv("http://api.clubelo.com/chelsea") | |
jose.inter <- read_csv("http://api.clubelo.com/inter") | |
jose.real <- read_csv("http://api.clubelo.com/realmadrid") | |
jose.mufc <- read_csv("http://api.clubelo.com/manunited") | |
jose.all <- bind_rows( | |
jose.porto %>% filter(From >= as.Date("2002-01-22") & To <= as.Date("2004-06-30")), |