Create a resizable map with an Albers USA projection that includes Puerto Rico. Adapted from this block but compatiable with D3 v4 & v5 and including a fitSize() function to help with resizing.
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
library(survey) | |
data(api) | |
x <- apistrat | |
x <- subset( x , comp.imp == 'Yes' ) | |
dstrat_before<-svydesign(id=~1,strata=~stype, weights=~pw, data=x, fpc=~fpc) |
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: gpl-3.0 | |
height: 600 | |
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
library(fst) | |
library(building) | |
library(car) | |
library(tidycensus) | |
library(extrafont) | |
library(viridis) | |
library(urbnmapr) | |
library(urbnthemes) | |
library(gganimate) | |
library(tweenr) |
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 |
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
# d3v4 - Switchable Table | |
license: | |
mit |
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
val | cutoff | year | country | |
---|---|---|---|---|
6910 | cop5 | 1981 | Australia | |
6864 | cop5 | 1985 | Australia | |
6555 | cop5 | 1989 | Australia | |
6551 | cop5 | 1995 | Australia | |
7002 | cop5 | 2001 | Australia | |
7090 | cop5 | 2003 | Australia | |
8818 | cop5 | 1987 | Austria | |
8744 | cop5 | 1994 | Austria | |
5813 | cop5 | 1995 | Austria |
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
6910 | cop5 | 1981 | Australia | |
---|---|---|---|---|
6864 | cop5 | 1985 | Australia | |
6555 | cop5 | 1989 | Australia | |
6551 | cop5 | 1995 | Australia | |
7002 | cop5 | 2001 | Australia | |
7090 | cop5 | 2003 | Australia | |
8818 | cop5 | 1987 | Austria | |
8744 | cop5 | 1994 | Austria | |
5813 | cop5 | 1995 | Austria |
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
Year | Jurisdiction | Grade | Measure | Race | Score | |
---|---|---|---|---|---|---|
2013 | Boston | 8 | algebra | White | 311 | |
2013 | Boston | 8 | algebra | Black | 278 | |
2013 | Boston | 8 | algebra | Hispanic | 278 | |
2013 | Boston | 8 | algebra | All races | 287 | |
2013 | Chicago | 8 | algebra | White | 299 | |
2013 | Chicago | 8 | algebra | Black | 264 | |
2013 | Chicago | 8 | algebra | Hispanic | 275 | |
2013 | Chicago | 8 | algebra | All races | 274 | |
2013 | San Diego | 8 | algebra | White | 307 |
OSRM route server is an extremely useful tool for getting the driving distance/time through multiple locations. The route server requires data that has to be downloaded and processsed before it can be used to serve routes from.
Processing OSRM data for large region like North America can be a real challenge due to memory and disk size requirements. It's also really time consuming. If you cut and try from scratch, you will repeatedly run into some constraints and fail after hours of running.
The following are summary notes from trying this with eventual success.
NewerOlder