1. Introduction

1.1 Assignment

Instructions

  1. Take the data from the GISTEMP1 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')
## 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.

2. Data

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.

2.2 Read Data

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" 

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.

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.

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 :

  • Click-and-drag to zoom into the elements inside the graph
  • Move the cursor on the points will show you the value
  • You can choose what element(s) to be show on the graph
  • You can download and save the graph in different format through the top corner of right-hand site
  • The graph will be auto zooming to fit the trend if you select/deselect a/some element(s)

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.

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.


  1. 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.

  2. The Programming Assignment 1 Submission inside my personal blog shows a completed version.