MassHEIS: Difference between revisions
Jump to navigation
Jump to search
(code moved from Sandbox and developed into an interactive model) |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{encyclopedia|moderator=Jouni}} | {{encyclopedia|moderator=Jouni}} | ||
'''Massachusetts Health and Environment Information System (MassHEIS)''' is a database maintained by Silent Spring Institute. | [[Category:Code under inspection]] | ||
'''Massachusetts Health and Environment Information System (MassHEIS)''' is a [http://services.tighebond.com/MassHEIS/Geocode/Address/-1/Town/-1/Zip/02451 database] maintained by [http://www.silentspring.org/ Silent Spring Institute]. | |||
==Data interface== | ==Data interface to MassHEIS== | ||
This user interface downloads data directly from the MassHEIS database. | |||
<rcode name='MassHEISTest' | <rcode name='MassHEISTest' | ||
Line 18: | Line 21: | ||
2005;2005;2006;2006;2007;2007;2008;2008|default:2008 | 2005;2005;2006;2006;2007;2007;2008;2008|default:2008 | ||
" | " | ||
embed=" | embed="1" | ||
graphics='1'> | graphics='1'> | ||
library(OpasnetUtils) | library(OpasnetUtils) | ||
Line 35: | Line 38: | ||
if(datatable == "EPAParticulateMatter") { | if(datatable == "EPAParticulateMatter") { | ||
data <- data[data$Year == year, ] | data <- data[data$Year == year, ] | ||
title <- "PM2.5 concentration, annual mean in Massachusetts (ug /m3)" | title <- paste("PM2.5 concentration, annual mean in Massachusetts, ", year, " (ug /m3)", sep ="") | ||
coordinates(data)=c("longitude","latitude") | |||
# ggplot(data, aes(x = Year, y = anmean)) + geom_bar() | # ggplot(data, aes(x = Year, y = anmean)) + geom_bar() | ||
Line 42: | Line 46: | ||
colnames(data)[colnames(data) == "HRS_SCORE"] <- "anmean" | colnames(data)[colnames(data) == "HRS_SCORE"] <- "anmean" | ||
title <- "Superfund sites, HRS_SCORE" | title <- "Superfund sites, HRS_SCORE" | ||
coordinates(data)=c("LONGITUDE","LATITUDE") | |||
} | } | ||
# Plot the data | # Plot the data | ||
proj4string(data)<-("+init=epsg:4326") | proj4string(data)<-("+init=epsg:4326") | ||
epsg4326String <- CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs") | epsg4326String <- CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs") | ||
Line 92: | Line 96: | ||
</rcode> | </rcode> | ||
==See also== | |||
* [http://www.silentspring.org/ Silent Spring Institute] | |||
* [http://services.tighebond.com/MassHEIS/Geocode/Address/-1/Town/-1/Zip/02451 MassHEIS database] | |||
* [http://library.silentspring.org/ArcGIS/rest/services Data tables available] | * [http://library.silentspring.org/ArcGIS/rest/services Data tables available] | ||
==References== | |||
<references/> | |||
==Related files== | |||
{{mfiles}} |
Latest revision as of 09:51, 27 August 2013
This page is a encyclopedia article.
The page identifier is Op_en5843 |
---|
Moderator:Jouni (see all) |
|
Upload data
|
Massachusetts Health and Environment Information System (MassHEIS) is a database maintained by Silent Spring Institute.
Data interface to MassHEIS
This user interface downloads data directly from the MassHEIS database.
See also
References
Related files
<mfanonymousfilelist></mfanonymousfilelist>