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')
suppressMessages(library('BBmisc'))
pkgs <- c('plyr', 'dplyr', 'magrittr', 'tidyr', 'googleVis', 'htmltools', 'rCharts', 'DT', 'sparkline', 'lubridate')
suppressAll(lib(pkgs))
rm(pkgs)
Setup and setting adjustment.
The dataset is downloadable in zipped file via here.
Name | Length | Date |
---|---|---|
Programming Assignment 1 Data New/ | 0 | 2015-07-28 11:08:00 |
Programming Assignment 1 Data New/ExcelFormattedGISTEMPData2CSV.csv | 7282 | 2015-07-28 10:52:00 |
Programming Assignment 1 Data New/ExcelFormattedGISTEMPData2JS.js | 49840 | 2015-07-28 10:57:00 |
Programming Assignment 1 Data New/ExcelFormattedGISTEMPData2TXT.txt | 7282 | 2015-07-28 10:52:00 |
Programming Assignment 1 Data New/ExcelFormattedGISTEMPDataCSV.csv | 9064 | 2015-07-28 11:08:00 |
Programming Assignment 1 Data New/ExcelFormattedGISTEMPDataJS.js | 54827 | 2015-07-28 10:57:00 |
Programming Assignment 1 Data New/ExcelFormattedGISTEMPDataTXT.txt | 9064 | 2015-07-28 10:54:00 |
From above information, we can know the information of the zipped files, and now we try to list out the documents for this mile-stone report as well as the summary of files.
[1] “ExcelFormattedGISTEMPData2CSV.csv” “ExcelFormattedGISTEMPData2JS.js”Read 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.
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 :
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.
In the paper I’ve plot few line charts by calling rCharts
2 rCharts is an R package to create, customize and publish interactive javascript visualizations from R using a familiar lattice style plotting interface. package.
It’s useful to record some information about how your file was created.
[1] “2016-04-29 18:42:42 EDT” setting value
version R version 3.2.3 (2015-12-10) system x86_64, linux-gnu
ui X11
language (EN)
collate en_US.UTF-8
tz America/New_York
date 2016-04-29
sysname release “Linux” “3.10.0-229.20.1.el7.x86_64” version nodename “#1 SMP Tue Nov 3 19:10:07 UTC 2015” “scibrokes” machine login “x86_64” “unknown” user effective_user “ryoeng” “ryoeng”