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
# Draw a map which responds to clicks by toggling the selection state | |
# of the clicked polygon. | |
library(shiny) | |
library(leaflet) | |
library(sf) | |
library(tidyverse) | |
nc = read_sf(system.file("gpkg/nc.gpkg", package="sf")) %>% | |
st_transform(4326) |
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
[ | |
{ | |
"Neighborhood": ["Agassiz"], | |
"data": [ | |
{ | |
"Year": 1999, | |
"Units": 0 | |
}, | |
{ | |
"Year": 2000, |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mouse Over and Out with Moving Infobox</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
<link type="text/css" rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<!-- I've only commented changes relevant to this mouse follow stuff --> | |
<!-- btw, this is what an html comment looks like --> |
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
Symbol | Name | ExpenseRatio | Y1 | Y3 | Y5 | Y10 | |
---|---|---|---|---|---|---|---|
VASGX | Vanguard LifeStrategy Growth Fund | 0.17 | 7.8 | 11.36 | 10.34 | 6.63 | |
VSMGX | Vanguard LifeStrategy Moderate Growth Fund | 0.16 | 7.47 | 9.38 | 9.01 | 6.31 | |
VMMXX | Vanguard Prime Money Market Fund | 0.16 | 0.01 | 0.02 | 0.03 | 1.58 | |
VPMCX | Vanguard PRIMECAP Fund Investor Shares | 0.44 | 15.58 | 21 | 15.91 | 10.78 | |
VGSLX | Vanguard REIT Index Fund Admiral Shares | 0.1 | 24.09 | 14.11 | 15.84 | 9.87 | |
VTTVX | Vanguard Target Retirement 2025 Fund | 0.17 | 7.65 | 10.35 | 9.78 | 6.58 | |
VBTLX | Vanguard Total Bond Market Index Fund Admiral Shares | 0.08 | 5.62 | 3.04 | 4.35 | 4.9 | |
VTIAX | Vanguard Total International Stock Index Fund Admiral Shares | 0.14 | -1.05 | 6.62 | NA | NA | |
VTSAX | Vanguard Total Stock Market Index Fund Admiral Shares | 0.05 | 12.3 | 16.39 | 14.76 | 8.55 |
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="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Cambridge Development since 2010</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
<style type="text/css"> | |
body { | |
background-color: white; |
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="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Cambridge Development since 2010</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
<style type="text/css"> | |
body { | |
background-color: #ddddff; |
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="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loading CSV Data with D3</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
<style type="text/css"> | |
svg { | |
background-color: #ddddff; | |
} |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
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
"ProjectID","Project.Name","Address","Street.Number","Street.Name","Neighborhood","Project.Stage","Year.Complete","Developer","Zoning","Planning.Board.Special.Permit","Building.Permit","Total.GFA","Lot.Area","FAR","Primary.Use","Residential.Units","Hotel.Rooms","Note" | |
391,"","42-54 Bay State Road","42-54","Bay State Road","Neighborhood 9","Complete","2013","BSR LLC","C-1A","N/A","212118-009990",13215,5891,2.24,"Residential",10,NA,"" | |
374,"Binney St. Alexandria Master Plan","225 Binney Street","225","Binney Street","East Cambridge","Complete","2013","Alexandria Real Estate","","PB243","1111093-012212",302680,79999,3.79,"Office/R&D",0,NA,"" | |
357,"Phase I","61-69 Bolton Street","61-69","Bolton Street","Neighborhood 9","Complete","2012","DG/R.E. Development","C-1A","PB251","611008",13218,9783,1.25,"Residential",10,NA,"" | |
393,"Phase II","61-69 Bolton Street","61-69","Bolton Street","Neighborhood 9","Complete","2012","DG/R.E. Development","C-1A","PB251","6110080",13218,9783,1.25,"Residential",10,NA,"" | |
350,"","277 Broa |