Tracking Precipitation by Day-of-Year

July 28, 2016

(This article was first published on RClimate, and kindly contributed to R-bloggers)

Plotting cumulative day-of-year precipitation can helpful in assessing how the current year’s rainfall compares with long term averages. This plot shows the cumulative rainfall by day-of-year for Philadelphia International Airports rain gauge.


The source data was downloaded from the Pa Climatologist website for the period 1949:2016. The period 1970 – 2016 was used for the analysis because the data archive does not include January data for 1950 – 1969.

The blue line represents the average day-of-year cumulative rainfall while the minimum and maximum years are shown in grey. The current year, 2016, is shown in red. As of July 24, there was a 5.18 inch negative anomaly in rainfall at the station.

This chart was created in R using base graphics commands.





To leave a comment for the author, please follow the link and comment on their blog: RClimate. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)