#install.packages("maps")
#install.packages("plotly")
#install.packages("jsonlite")
#install.packages("mapproj")

library(flexdashboard)
## Warning: package 'flexdashboard' was built under R version 3.5.3
library(maps)
## Warning: package 'maps' was built under R version 3.5.3
library(readr)
library(plotly)
## Warning: package 'plotly' was built under R version 3.5.3
## Loading required package: ggplot2
## Warning: package 'ggplot2' was built under R version 3.5.3
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout
library(dygraphs)
## Warning: package 'dygraphs' was built under R version 3.5.3
library(ggplot2)
library(lubridate)
## Warning: package 'lubridate' was built under R version 3.5.3
## 
## Attaching package: 'lubridate'
## The following object is masked from 'package:base':
## 
##     date
library(mapproj)
## Warning: package 'mapproj' was built under R version 3.5.3

Introduction

Global teperature change Dashboard

GLobal warming is has always been an issue that has been escalated to alarming levels today. All of the industrial sectors hugely depend on/directly affected by climate change while some are primarily responsible for the direct effects on the climate.

The dashboard provides analysis and visualization of statewide average temperatures for all 50 states in the US mainland. We will see the effects of climate change and how this is directlytranslated to one of the countries we used as a frame of reference - which is the US.

Data Source: Global Temperature, Atmospheric Carbon Dioxide, Statewide Average Temperature

Global Facts

Row

Global Surface Temperature

History of Global Surface Temperature since 1880

Atmospheric Carbon Dioxide

History of Atmospheric Carbon Dioxide

Statewide Temperature

Row

July 2018 Contiguous U.S. Statewide Average Temperature

July 2018 Statewide rank

July 2018 Statewide Average Temperature Anomaly

State bar graphs for temperatures

Row

States by rank

July 2018 Mean Value

July 2018 Anomaly (1901-2000 base period)

Observation

Global climate change

Based on the global visualization, a trend of climate change can be easily observed.

Obeservations

We see that there is a direct correlation between GLobal warming and Atmospheric Carbon Dioxide.The global surface temperature is gradually rising.Sea level rise has accelerated from 1.7 mm/year throughout most of the twentieth century to 3.2 mm/year since 1993.The amount of carbon dioxide in the atmosphere has risen by 18% since 1980.

Average temperature across the United States

As we see, Texas has the highest avg temperatue in July a d Montana has the lowest in July. But as we can see in the ranks, Texas raks 5 while Montana ranks 27 which is a deviation from what is observed. Aslo, as seen in the United States map (heat map version) we see that temperatues are high in Southern states and gradually decrease as we go up North. The rank chart, however shows tht the Highest ranked states are Southern states, but the subsequent high ranked states gravitate twards the North-West.

Temperature Anomaly is usually described as a deviation in the expected behaviour.A positive anomaly means that the temperature was warmer than normal; a negative anomaly indicates that the temperature was cooler than normal. As seen from the Anomaly chart, California has the highest positive anomaly while Nebraska has the lowest anomaly. Also, sine a lot of states have a positive anoaly, we can expect a lot of these states to be warmer than expected.