Instructions
Programming Assignment 1 Data New.zip
If you’re interested, you can also download the original data by clicking below.
Loading packages.
## Loading the package 'BBmisc'
if(suppressMessages(!require('BBmisc'))) install.packages('BBmisc')
## Warning: package 'BBmisc' was built under R version 3.3.2
suppressMessages(library('BBmisc'))
pkgs <- c('plyr', 'dplyr', 'magrittr', 'tidyr', 'googleVis', 'htmltools', 'rCharts', 'DT', 'sparkline', 'lubridate')
suppressAll(lib(pkgs))
rm(pkgs)
Setup and setting adjustment.
Now, we will download and unzip the file found here.We can know the information of the zipped files, and try to list out the documents for this mile-stone report as well as the summary of files.
Warning: package 'formattable' was built under R version 3.3.2
[1] “ExcelFormattedGISTEMPData2CSV.csv” “ExcelFormattedGISTEMPData2JS.js”
[3] “ExcelFormattedGISTEMPData2TXT.txt” “ExcelFormattedGISTEMPDataCSV.csv” [5] “ExcelFormattedGISTEMPDataJS.js” “ExcelFormattedGISTEMPDataTXT.txt”
Warning: `rbind_all()` is deprecated. Please use `bind_rows()` instead.
table 2.1.2 : Summary of files.
Reading data.
[[1]]
Year Jan Feb Mar Apr May Jun
"numeric" "numeric" "numeric" "numeric" "numeric" "numeric" "numeric"
Jul Aug Sep Oct Nov Dec J.D
"numeric" "numeric" "numeric" "numeric" "numeric" "numeric" "numeric"
D.N DJF MAM JJA SON
"numeric" "numeric" "numeric" "numeric" "numeric"
[[2]]
Year Glob NHem SHem X24N.90N X24S.24N X90S.24S
"numeric" "numeric" "numeric" "numeric" "numeric" "numeric" "numeric"
X64N.90N X44N.64N X24N.44N EQU.24N X24S.EQU X44S.24S X64S.44S
"numeric" "numeric" "numeric" "numeric" "numeric" "numeric" "numeric"
X90S.64S
"numeric"
Now we look at our data set in table format.
The table has few functions which allow you to print, save etc.
Warning: package 'DT' was built under R version 3.3.2
table 3.1.1 : Climate Degree Celsius from Year 1880 to 2015.
table 3.1.2 : Global Temperature over the years.
The table display with theme.
table 3.2.1 : Climate Degree Celsius from Year 1880 to 2015.
table 3.2.2 : Global Temperature over the years.
The zooming graph allow you to :
Remarks : kindly refer to [5.3 Speech and Blooper]2 if you unable see the interactive graphs.
graph 3.2.1 : Climate Degree Celsius from Year 1880 to 2015.
From the above graph, the X Axis indicates the year and Y Axis indicates the degree celsius.
graph 3.2.2 : Globe and the North and South Hemispheres through all the given years.
The resulting graph shows an increasing mean Global Temperature over the years.
The moving trend graph enable you to compare the value of all elements at once (at the same time point).
graph 3.3.1 : Climate Degree Celsius from Year 1880 to 2015.
From the above graph, the X Axis indicates the year and Y Axis indicates the degree celsius.
graph 3.3.2 : Global Temperature over the years.
The resulting graph shows an increasing mean Global Temperature over the years.
The option line chart only allow you to choose what element(s) to be display on the graph.
graph 3.4.1 : Climate Degree Celsius from Year 1880 to 2015.
From the above graph, the X Axis indicates the year and Y Axis indicates the degree celsius.
graph 3.4.2 : Global Temperature over the years.
The resulting graph shows an increasing mean Global Temperature over the years.
Google line chart allow you to see the value of element once you move your cursor to a particular time point. Besides, you can also select the chart type from the Edit option.
graph 3.5.1 : Climate Degree Celsius from Year 1880 to 2015.
From the above graph, the X Axis indicates the year and Y Axis indicates the degree celsius.
graph 3.5.2 : Global Temperature over the years.
The resulting graph shows an increasing mean Global Temperature over the years.
GISS Surface Temperature Analysis (GISTEMP) provides the graphs and tables are updated around the middle of every month using current data files from NOAA GHCN v3 (meteorological stations), ERSST v4 (ocean areas), and SCAR (Antarctic stations), combined as described in our December 2010 publication (Hansen et al. 2010). These updated files incorporate reports for the previous month and also late reports and corrections for earlier months.↩
The Programming Assignment 1 Submission inside my personal blog shows a completed version.↩