Programming Assignment 1 Submission

Data Visualization by University of Illinois at Urbana-Champaign

®γσ, Eng Lian Hu 白戸則道®

2016-04-29

1. Introduction

1.1 Assignment

Instructions

  1. Take the data from the GISTEMP1 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. site, specifically the data from “Table Data: Global and Hemispheric Monthly Means and Zonal Annual Means.” Alternatively you can use any data that you would like to explore instead.
  2. Parse the data to a suitable format for the tools that you are using – we have provided two files (in JS, TXT, and CSV formats) that contain the data used to make the visualizations here, which is a subset of the data on the GISTEMP site.
  3. Visualize the data in any meaningful way you wish, keeping in mind the requirements of the Programming Assignment 1 Rubric.
  4. Click below to download the .zip file for this programming assignment.

Programming Assignment 1 Data New.zip

If you’re interested, you can also download the original data by clicking below.

Programming Assignment Data - GISTEMP Original.zip

1.2 Preparing Environment

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.

2. Data

2.1 Collecting Data

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”
[3] “ExcelFormattedGISTEMPData2TXT.txt” “ExcelFormattedGISTEMPDataCSV.csv” [5] “ExcelFormattedGISTEMPDataJS.js” “ExcelFormattedGISTEMPDataTXT.txt”

2.2 Read Data

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" 

3. Data Visulaization

3.1 Data Table

Now we look at our data set in table format.

3.1.1 Functional Table

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.

3.1.2 stylish Table

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.

3.2 Zooming Line Chart

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.

3.3 Moving Trend Line Chart

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.

3.4 Option Line Chart

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.

3.5 Google Line Chart

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.

4. Conclusion

In the paper I’ve plot few line charts by calling rCharts2 rCharts is an R package to create, customize and publish interactive javascript visualizations from R using a familiar lattice style plotting interface. package.

5. Appendices

5.1 Documenting File Creation

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”

5.2 Versions’ Log

5.3 References