SlideShare uma empresa Scribd logo
1 de 9
Baixar para ler offline
NEW YORK CITY’S
ELECTRICITY CONSUMPTION 2010
New Yorkers consume more energy inside than
Americans on average. In New York around 75%
of the greenhouse gas emissions come from
activities such as lighting, heating, cooling and
appliances, while on a national level that figure is
39%.

Source: http://www.nycedc.com/blog-entry/energy-consumption-new-york-city
We take a closer look on New York City’s
electricity consumption to figure out what is
actually happening within NYC buildings.
ELECTRICITY CONSUMPTION IN NEW YORK CITY 2010
Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013

Commercial
buildings use 55%

Institutional
buildings consume

of the city’s entire
electricity
consumption

12%

Large
residential

Small
residential

buildings consume

7%

buildings consume

26%
high

low
LARGE RESIDENTIAL BUILDINGS ELECTRICITY CONSUMPTION
Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013

Large residential buildings use 7 % of
New York City’s entire electricity consumption
Max consumption per year =
kWh per zip code area

100 million

The areas with highest large
residential consumption are
predominately zip codes
containing public housing

high

low
INSTITUTIONAL BUILDINGS ELECTRICITY CONSUMPTION
Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013

Institutional buildings use 12 % of New
York City’s entire electricity consumption
Max consumption per year = 467 million
kWh per zip code area
South Ozone park has the
highest consumption within
institutional buildings, here
lies JFK Airport

high

low
SMALL RESIDENTIAL BUILDINGS ELECTRICITY CONSUMPTION
Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013

Small residential buildings use 26 % of
New York City’s entire electricity consumption
Max consumption per year = 224 million
kWh per zip code area
Staten Island and The Upper
East and Upper West Side
have the highest small
residential energy
consumption
Staten Island has 2.7 people
per household where
Manhattan has 1.7
high

low
COMMERCIAL BUILDINGS ELECTRICITY CONSUMPTION
Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013

Commercial buildings use 55 % of New
York City’s entire electricity consumption
Max consumption per year = 1.4 billion
kWh per zip code area
4 zip codes between 42nd
and 57th street use 20 %
of the total commercial
consumption. They range
between 1.2 and 1.4
billion kWh use

high

low
The City of New York has recently released a
report benchmarking commercial building
consumption in NYC. This is the first time a city in
the nation releases private sector building data.
The objective is to make the general public aware
of the current consumption patterns and thereby
stimulate an interest in changing these.
Our data analysis fully supports the city’s initiative.
We therefore hope our data visualization can
function as a supporting tool to encourage change.
Source: http://www.nyc.gov/html/gbee/html/plan/ll84_scores.shtml
require(ggplot2)
# shape file, download from: http://www.census.gov/cgi-bin/geo/shapefiles2010/main
shape_fp <- " xx "
shape_fn <- "tl_2010_36_zcta510.shp"
electricity_fp <- " xx "
electricity_fn <- "Electric_Consumption.csv"
library(ggplot2)
library(maptools)
library(rgdal)
library(rgeos)
setwd(shape_fp)
ogrListLayers(shape_fn)
nyc_shp <- readOGR(shape_fn, layer="tl_2010_36_zcta510")
nycs <- fortify(nyc_shp, region= "ZCTA5CE10")
setwd(electricity_fp)
electric <- read.csv(electricity_fn, header=TRUE)
electric$loc1
electric$loc2
electric$loc3
electric$loc4

<<<<-

regexpr("n", as.character(electric$Zip.Code))
regexpr(",", as.character(electric$Zip.Code))
regexpr("-", as.character(electric$Zip.Code))
regexpr(")", as.character(electric$Zip.Code))

electric$Zip <- substr(as.character(electric$Zip.Code), 1, 5)
electric$Lat <- as.numeric(substr(as.character(electric$Zip.Code), electric$loc1 + 2, electric$loc2 - 1))
electric$Long <- as.numeric(substr(as.character(electric$Zip.Code), electric$loc3, electric$loc4 - 1))
electric$loc1
electric$loc2
electric$loc3
electric$loc4

<<<<-

NULL
NULL
NULL
NULL

electric$Building.type..service.class. <- gsub('Small residential', 'Small Residential', electric$Building.type..service.class.)
electric$Building.type..service.class. <- as.factor(electric$Building.type..service.class.)
electric$kwdecN <- as.numeric(cut(electric$Consumption..kWh.,quantile(electric$Consumption..kWh.,(0:10)/
10),include.lowest=TRUE,lable=TRUE))
summary(electric)
attach(electric)
elec.summ <- aggregate(electric, by=list(Zip, Building.type..service.class.), FUN = mean, na.rm=TRUE)
elec.summ.largeres <- elec.summ[elec.summ$Group.2=="Large Residential",]
elec.summ.largeres$id <- elec.summ.largeres$Group.1
elec.summ.largeres$Group.1 <- NULL
head(elec.summ.largeres)
summary(elec.summ.largeres)
head(nycs)
head(elec.summ.largeres)
formap <- merge(nycs, elec.summ.largeres, by="id", all.x = TRUE)
head(formap)
summary(formap)
nrow(nycs)
nrow(formap)
formap <- formap[order(formap$order), ]
rm(nycs)
ggplot(formap, aes(x = long, y = lat, group=group)) +
geom_polygon(aes(fill= kwdecN), color="grey") +
coord_cartesian(xlim=c(-74.3, -73.7), ylim=c(40.41, 40.92)) +
theme(plot.background = element_rect(fill='black', colour='black')) +
theme(panel.background = element_rect(fill="black")) +
theme(line = element_blank()) +
theme(text = element_blank()) +
theme(title = element_blank()) +
labs(x=NULL, y=NULL) +
scale_x_continuous(expand=c(0,0)) +
scale_fill_gradientn(colours = c("yellow" , "red"))
table(cut(electric$Consumption..kWh.,quantile(electric$Consumption..kWh.,(0:10)/10),include.lowest=TRUE,lable=TRUE))
getwd()
ggsave("elec.svg", width = 7, height = 7)
ggsave("elec.png", width= 7, height=7)

Mais conteúdo relacionado

Semelhante a Data visualization of NYC's electricity consumption in 2010 per building type

How New York’s Fire Department Uses Data Mining - Digits - WSJ
How New York’s Fire Department Uses Data Mining - Digits - WSJHow New York’s Fire Department Uses Data Mining - Digits - WSJ
How New York’s Fire Department Uses Data Mining - Digits - WSJJeff Roth
 
Discovering Applications in Energy Sector
Discovering Applications in Energy SectorDiscovering Applications in Energy Sector
Discovering Applications in Energy SectorRizal Mohd Nor
 
SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...
SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...
SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...Urjanet
 
Philadelphia Building Benchmarking
Philadelphia Building BenchmarkingPhiladelphia Building Benchmarking
Philadelphia Building Benchmarkinglevlane
 
Innovating with Open Data - Avi Bender
Innovating with Open Data - Avi Bender Innovating with Open Data - Avi Bender
Innovating with Open Data - Avi Bender scoopnewsgroup
 
BUILDING A DIGITAL CITY: THE GROWTH AND IMPACT OF NEW YORK CITY’S TECH/INFORM...
BUILDING A DIGITAL CITY: THE GROWTH AND IMPACT OF NEW YORK CITY’S TECH/INFORM...BUILDING A DIGITAL CITY: THE GROWTH AND IMPACT OF NEW YORK CITY’S TECH/INFORM...
BUILDING A DIGITAL CITY: THE GROWTH AND IMPACT OF NEW YORK CITY’S TECH/INFORM...Ahmad Musdikar
 
GIS Final Project_BDH
GIS Final Project_BDHGIS Final Project_BDH
GIS Final Project_BDHBenjamin Hamm
 
Business intelligence on the US greentech market
Business intelligence on the US greentech marketBusiness intelligence on the US greentech market
Business intelligence on the US greentech marketEC2i
 
Going Solar in America - Ranking Solar's Value to Customers_FINAL
Going Solar in America - Ranking Solar's Value to Customers_FINALGoing Solar in America - Ranking Solar's Value to Customers_FINAL
Going Solar in America - Ranking Solar's Value to Customers_FINALJim Kennerly
 
Using Open Data in your Applications
Using Open Data in your ApplicationsUsing Open Data in your Applications
Using Open Data in your ApplicationsDerilinx
 
New York City’s Digital Leadership
New York City’s Digital LeadershipNew York City’s Digital Leadership
New York City’s Digital LeadershipEvgeny Tsarkov
 
NYC Digital Roadmap 2013
NYC Digital Roadmap 2013NYC Digital Roadmap 2013
NYC Digital Roadmap 2013Smart City
 
Revue de presse IoT / Data du 22/01/2017
Revue de presse IoT / Data du 22/01/2017Revue de presse IoT / Data du 22/01/2017
Revue de presse IoT / Data du 22/01/2017Romain Bochet
 
The New York City Tech Ecosystem
The New York City Tech EcosystemThe New York City Tech Ecosystem
The New York City Tech EcosystemHR&A Advisors
 
Nyc tech ecosystem_032614_web
Nyc tech ecosystem_032614_webNyc tech ecosystem_032614_web
Nyc tech ecosystem_032614_webPeerasak C.
 

Semelhante a Data visualization of NYC's electricity consumption in 2010 per building type (20)

How New York’s Fire Department Uses Data Mining - Digits - WSJ
How New York’s Fire Department Uses Data Mining - Digits - WSJHow New York’s Fire Department Uses Data Mining - Digits - WSJ
How New York’s Fire Department Uses Data Mining - Digits - WSJ
 
Discovering Applications in Energy Sector
Discovering Applications in Energy SectorDiscovering Applications in Energy Sector
Discovering Applications in Energy Sector
 
SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...
SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...
SPARK16 Presentation: Measuring for Results: Data and the Changing Energy Lan...
 
Smart cities and the Internet of Things
Smart cities and the Internet of ThingsSmart cities and the Internet of Things
Smart cities and the Internet of Things
 
Philadelphia Building Benchmarking
Philadelphia Building BenchmarkingPhiladelphia Building Benchmarking
Philadelphia Building Benchmarking
 
Innovating with Open Data - Avi Bender
Innovating with Open Data - Avi Bender Innovating with Open Data - Avi Bender
Innovating with Open Data - Avi Bender
 
Caribbean Digital Economy:Opportunities and Challenges
Caribbean Digital Economy:Opportunities and ChallengesCaribbean Digital Economy:Opportunities and Challenges
Caribbean Digital Economy:Opportunities and Challenges
 
Caribbean Digital Economy - are you in?
Caribbean Digital Economy - are you in?Caribbean Digital Economy - are you in?
Caribbean Digital Economy - are you in?
 
Buildingadigitalcity
BuildingadigitalcityBuildingadigitalcity
Buildingadigitalcity
 
BUILDING A DIGITAL CITY: THE GROWTH AND IMPACT OF NEW YORK CITY’S TECH/INFORM...
BUILDING A DIGITAL CITY: THE GROWTH AND IMPACT OF NEW YORK CITY’S TECH/INFORM...BUILDING A DIGITAL CITY: THE GROWTH AND IMPACT OF NEW YORK CITY’S TECH/INFORM...
BUILDING A DIGITAL CITY: THE GROWTH AND IMPACT OF NEW YORK CITY’S TECH/INFORM...
 
GIS Final Project_BDH
GIS Final Project_BDHGIS Final Project_BDH
GIS Final Project_BDH
 
Business intelligence on the US greentech market
Business intelligence on the US greentech marketBusiness intelligence on the US greentech market
Business intelligence on the US greentech market
 
Going Solar in America - Ranking Solar's Value to Customers_FINAL
Going Solar in America - Ranking Solar's Value to Customers_FINALGoing Solar in America - Ranking Solar's Value to Customers_FINAL
Going Solar in America - Ranking Solar's Value to Customers_FINAL
 
Using Open Data in your Applications
Using Open Data in your ApplicationsUsing Open Data in your Applications
Using Open Data in your Applications
 
Community Objection Grounds for .nyc submitted to ICANN's ALAC
Community Objection Grounds for .nyc submitted to ICANN's ALACCommunity Objection Grounds for .nyc submitted to ICANN's ALAC
Community Objection Grounds for .nyc submitted to ICANN's ALAC
 
New York City’s Digital Leadership
New York City’s Digital LeadershipNew York City’s Digital Leadership
New York City’s Digital Leadership
 
NYC Digital Roadmap 2013
NYC Digital Roadmap 2013NYC Digital Roadmap 2013
NYC Digital Roadmap 2013
 
Revue de presse IoT / Data du 22/01/2017
Revue de presse IoT / Data du 22/01/2017Revue de presse IoT / Data du 22/01/2017
Revue de presse IoT / Data du 22/01/2017
 
The New York City Tech Ecosystem
The New York City Tech EcosystemThe New York City Tech Ecosystem
The New York City Tech Ecosystem
 
Nyc tech ecosystem_032614_web
Nyc tech ecosystem_032614_webNyc tech ecosystem_032614_web
Nyc tech ecosystem_032614_web
 

Último

JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 

Último (20)

JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 

Data visualization of NYC's electricity consumption in 2010 per building type

  • 1. NEW YORK CITY’S ELECTRICITY CONSUMPTION 2010 New Yorkers consume more energy inside than Americans on average. In New York around 75% of the greenhouse gas emissions come from activities such as lighting, heating, cooling and appliances, while on a national level that figure is 39%. Source: http://www.nycedc.com/blog-entry/energy-consumption-new-york-city
  • 2. We take a closer look on New York City’s electricity consumption to figure out what is actually happening within NYC buildings.
  • 3. ELECTRICITY CONSUMPTION IN NEW YORK CITY 2010 Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013 Commercial buildings use 55% Institutional buildings consume of the city’s entire electricity consumption 12% Large residential Small residential buildings consume 7% buildings consume 26% high low
  • 4. LARGE RESIDENTIAL BUILDINGS ELECTRICITY CONSUMPTION Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013 Large residential buildings use 7 % of New York City’s entire electricity consumption Max consumption per year = kWh per zip code area 100 million The areas with highest large residential consumption are predominately zip codes containing public housing high low
  • 5. INSTITUTIONAL BUILDINGS ELECTRICITY CONSUMPTION Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013 Institutional buildings use 12 % of New York City’s entire electricity consumption Max consumption per year = 467 million kWh per zip code area South Ozone park has the highest consumption within institutional buildings, here lies JFK Airport high low
  • 6. SMALL RESIDENTIAL BUILDINGS ELECTRICITY CONSUMPTION Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013 Small residential buildings use 26 % of New York City’s entire electricity consumption Max consumption per year = 224 million kWh per zip code area Staten Island and The Upper East and Upper West Side have the highest small residential energy consumption Staten Island has 2.7 people per household where Manhattan has 1.7 high low
  • 7. COMMERCIAL BUILDINGS ELECTRICITY CONSUMPTION Data source: NYC Open Data (www.nyc.gov). Data visualization by Marija Drobnjak and Lise White, Dec. 2013 Commercial buildings use 55 % of New York City’s entire electricity consumption Max consumption per year = 1.4 billion kWh per zip code area 4 zip codes between 42nd and 57th street use 20 % of the total commercial consumption. They range between 1.2 and 1.4 billion kWh use high low
  • 8. The City of New York has recently released a report benchmarking commercial building consumption in NYC. This is the first time a city in the nation releases private sector building data. The objective is to make the general public aware of the current consumption patterns and thereby stimulate an interest in changing these. Our data analysis fully supports the city’s initiative. We therefore hope our data visualization can function as a supporting tool to encourage change. Source: http://www.nyc.gov/html/gbee/html/plan/ll84_scores.shtml
  • 9. require(ggplot2) # shape file, download from: http://www.census.gov/cgi-bin/geo/shapefiles2010/main shape_fp <- " xx " shape_fn <- "tl_2010_36_zcta510.shp" electricity_fp <- " xx " electricity_fn <- "Electric_Consumption.csv" library(ggplot2) library(maptools) library(rgdal) library(rgeos) setwd(shape_fp) ogrListLayers(shape_fn) nyc_shp <- readOGR(shape_fn, layer="tl_2010_36_zcta510") nycs <- fortify(nyc_shp, region= "ZCTA5CE10") setwd(electricity_fp) electric <- read.csv(electricity_fn, header=TRUE) electric$loc1 electric$loc2 electric$loc3 electric$loc4 <<<<- regexpr("n", as.character(electric$Zip.Code)) regexpr(",", as.character(electric$Zip.Code)) regexpr("-", as.character(electric$Zip.Code)) regexpr(")", as.character(electric$Zip.Code)) electric$Zip <- substr(as.character(electric$Zip.Code), 1, 5) electric$Lat <- as.numeric(substr(as.character(electric$Zip.Code), electric$loc1 + 2, electric$loc2 - 1)) electric$Long <- as.numeric(substr(as.character(electric$Zip.Code), electric$loc3, electric$loc4 - 1)) electric$loc1 electric$loc2 electric$loc3 electric$loc4 <<<<- NULL NULL NULL NULL electric$Building.type..service.class. <- gsub('Small residential', 'Small Residential', electric$Building.type..service.class.) electric$Building.type..service.class. <- as.factor(electric$Building.type..service.class.) electric$kwdecN <- as.numeric(cut(electric$Consumption..kWh.,quantile(electric$Consumption..kWh.,(0:10)/ 10),include.lowest=TRUE,lable=TRUE)) summary(electric) attach(electric) elec.summ <- aggregate(electric, by=list(Zip, Building.type..service.class.), FUN = mean, na.rm=TRUE) elec.summ.largeres <- elec.summ[elec.summ$Group.2=="Large Residential",] elec.summ.largeres$id <- elec.summ.largeres$Group.1 elec.summ.largeres$Group.1 <- NULL head(elec.summ.largeres) summary(elec.summ.largeres) head(nycs) head(elec.summ.largeres) formap <- merge(nycs, elec.summ.largeres, by="id", all.x = TRUE) head(formap) summary(formap) nrow(nycs) nrow(formap) formap <- formap[order(formap$order), ] rm(nycs) ggplot(formap, aes(x = long, y = lat, group=group)) + geom_polygon(aes(fill= kwdecN), color="grey") + coord_cartesian(xlim=c(-74.3, -73.7), ylim=c(40.41, 40.92)) + theme(plot.background = element_rect(fill='black', colour='black')) + theme(panel.background = element_rect(fill="black")) + theme(line = element_blank()) + theme(text = element_blank()) + theme(title = element_blank()) + labs(x=NULL, y=NULL) + scale_x_continuous(expand=c(0,0)) + scale_fill_gradientn(colours = c("yellow" , "red")) table(cut(electric$Consumption..kWh.,quantile(electric$Consumption..kWh.,(0:10)/10),include.lowest=TRUE,lable=TRUE)) getwd() ggsave("elec.svg", width = 7, height = 7) ggsave("elec.png", width= 7, height=7)