Climate change and science has been an issue for discussion and debate for at least the last decade. Climate data collection is currently being collected for areas all over the world. Policy decisions are based on the most recent analysis conducted on data extracted from huge online repositories of this data. Due to the inherent growth in the electronic production and storage of information, there is often a feeling of “information overload” or inundation when facing the process of quantitative decision making. As an analyst your job will often be to explore large data sets and develop questions or ideas from visualizations of those data sets. The ability to synthesize large data sets using visualizations is a skill that all data scientists should have. In addition to this data scientists are called upon to present data syntheses and develop questions or ideas based on their data exploration. This lab should take you through the major steps in data exploration and presentation.
The objective of this laboratory is to survey the available data, plan, design, and create an information dashboard/presentation that not only explores the data but helps you develop questions based on that data exploration. To accomplish this task you will have to complete a number of steps:
1.Identify what information interests you about climate change. 2.Find, collect, organize, and summarize the data necessary to create your data exploration plan. 3.Design and create the most appropriate visualizations (no less than 5 visualizations) to explore the data and present that information. 4.Finally organize the layout of those visualizations into a dashboard (use the flexdashboard package) in a way that shows your path of data exploration. 5.Develop four questions or ideas about climate change from your visualizations.
data <- read.csv(url("https://www.ncei.noaa.gov/access/monitoring/climate-at-a-glance/statewide/mapping/110-tavg-202303-2.csv"),skip=3)
state = map_data("state")
data$region = tolower(data$Location)
temp = merge(state, data, by="region", all=T)
temp<-temp[-6]
temp<-drop_na(temp)
mt = ggplot(temp, aes(x = long, y = lat, group = group, fill = Value))+geom_polygon(color = "white")
mt = mt + scale_fill_gradient(name = "degrees F", low = "blue", high = "red" , na.value="white") + labs(x="Longitude",y="Latitude")
mt + coord_map() ### Summary
The map shows the average Anomal temperature across the state between the year of 1901 and 2000. We can see from the map that north part of the state tend to have low average Anomal temperature compare to the south.Even though New mexico and Arizona are at the same latitude, New mexico seems to have low average Anomal temperature compare to Arizona. North Dakota has the lowest average Anomal temperature compare to all other states.
data_2 <- read.csv(url("https://www.ncdc.noaa.gov/cag/national/time-series/110-tavg-1-6-1895-2019.csv?base_prd=true&begbaseyear=1901&endbaseyear=2000"),skip=4)
ggplot(data_2,aes(x=Date,y=Value))+
geom_line()+
geom_smooth(method='lm',se=FALSE)+
labs(title="Annual National Average Temperature",x="year",y="Temperature")The graph indicates the annual national average temperature in the last century. We can see the average temperature has been steadily increased over the year of 1901 and 2000.
data_3 <- read.csv(url("https://www.ncdc.noaa.gov/societal-impacts/redti/USA/jun/1-month/data.csv"),skip=1)
ggplot(data_3,aes(x=Date,y=REDTI))+
geom_col()+
geom_smooth(method='lm',se=FALSE)+
labs(title="Annual Residential Energy Demand Temperature Index",x="Year",y="REDTI")This graph is the annual residential energy demand temperature. The Residential Energy Demand Temperature Index (REDTI) is based on population weighted* heating and cooling degree days. As we can see, the energy demand temperature has been increased over the 100 years. The result is consistent with our findings in Analysis 2, since the energy demand for residential heating and cooling is increased due to temperature change.
GH <- read.csv("/Users/CrisRonnie/Documents/510 A/GreenhouseGasEmission.csv")
ggplot(GH, aes(fill=Industry, y=EmissionAmount, x=Year)) +
geom_bar(position="stack", stat="identity") +
theme(legend.text = element_text(size = 6))global GHG emissions were significantly increased in 2022, after declining by 0.6 percent in 2020. According to the latest UNFCCC reports the best estimate of temperature change is 2.5-2.9°C and there is an agreement that net zero CO2 emissions are the prerequisite for halting warming at any level.
data6 = read.csv(url("https://www.ncei.noaa.gov/access/monitoring/snow-and-ice-extent/sea-ice/G/2/data.csv"),skip=4)
ggplot(data6, aes(x=Date, y=Value)) + geom_area(position="jitter", alpha=0.2, fill="blue") + scale_y_continuous(breaks=c(0,2,4,6,8,10,12,14,16,18,20)) + theme_minimal()+
ylab("Extent of Global Sea Ice (Millions Sq Km") + ggtitle("Global Sea Ice Extent in February (1979-2023)")Northern Hemisphere sea ice cover has been decreased over since 1980.
What is the trend in temperature across the state? North part of the state tend to have low average Anomal temperature compare to the south in the last century.
Is there a trend in temperature in the last century? The energy demand for residential heating and cooling is increaed due to the abnormal temperature change. The average temperature has been steadily increased over the year of 1901 and 2000.The annual lower tropospheric global temperature anomalies have been increaed over the years, and Northern Hemisphere sea ice cover otherwise.
What is the the role of human activity in global warming? Human plays an important part in climate change, combustion of fossil fuels and deforestation are the main causes to release CO2 in the atmosphere.
What can we do to prevent glbal warming? Reduce the use of fossil fuels, today we have alternate methods to replace the use of fossil fuels. Individuals may reduce the use of non recyclable material.