Daily Average Temperature

Shiny app for Developing Data Products course final assignment

Andrés Bishop

Overview

"Daily Average Temperature" is a simple shiny app that shows average daily temperature from three cities in Catalonia in a time span of 1 to 60 days. The user can choose the beginning day, the numbert of days to display and the city from which data comes from. The data is showed in a line graphic, using the plotly library.

Data Acquisition

Data is acquired from the DAILY GLOBAL HISTORICAL CLIMATOLOGY NETWORK (GHCN-DAILY) Version 3.22 of the NOAA National Climatic Data Center (http://doi.org/10.7289/V5D21VHZ) using the rnoaa library and filtered to obtain data frames as the following:

day prcp tavg tmax tmin Station
2016-03-01 0 12.4 17.8 6.9 Reus
2016-03-02 0 16.6 22.5 6.7 Reus
2016-03-03 0 13.7 18.1 10.1 Reus
2016-03-04 0 12.1 18.4 5.4 Reus
2016-03-05 0 12.3 16.9 8.0 Reus
2016-03-06 0 11.3 16.7 6.1 Reus

Plotting the data

plot of chunk unnamed-chunk-3

Fin

Thank you!