<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/visualizing-a-flood-with-r/"></div></div><div><a data-url="http://www.r-bloggers.com/visualizing-a-flood-with-r/" data-counturl="http://www.r-bloggers.com/visualizing-a-flood-with-r/" data-count="horizontal" data-text="Visualizing a flood with R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2016/06/visualizing-a-flood-with-r.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>As more settlements in <a target="_blank" href="http://www.cnn.com/2016/06/02/us/texas-floods/">Texas</a> and <a target="_blank" href="http://www.thelocal.fr/20160602/louvre-and-muse-dorsay-close-over-threat-from-floods-paris">France</a> are impacted by severe flooding, this is a good time to thank the hydrologists at the NOAA who <a target="_blank" href="http://blog.revolutionanalytics.com/2012/04/NOAA-R-river-flooding.html">forecast river level rises in advance</a> and give residents in affected areas time to move to higher ground. Along with topgraphic, rainfall, and weather data, monitoring stations maintained by NOAA and the USGS along rivers provide critical real-time information about river levels. NOAA scientists access this data using the <a target="_blank" href="https://mran.microsoft.com/package/dataRetrieval/">dataRetrieval package for R</a>, which they then incorporate into flood prediction models and use to generate animations like this one of the flood of the Delaware in February this year:</p>
<p><a target="_blank" href="http://adventuresindata.blogspot.com/2016/03/animated-flow-in-non-tidal-delaware.html"><img title="DelawareQ_Feb2016" alt="DelawareQ_Feb2016" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01b8d1f11bb3970c-800wi" border="0"></a></p>
<p>According to the <a target="_blank" href="http://adventuresindata.blogspot.com/2016/03/animated-flow-in-non-tidal-delaware.html">AdventuresInData blog, which posted the above animation</a> (creating using R's <a target="_blank" href="https://mran.microsoft.com/package/animation/">animation package</a>):</p>
<blockquote>
<p>The plot shows the discharge per drainage area (cfs/square mile) responding to rainfall.  Tributaries cause unequal response initially, but then the entire system settles into a flow wave rolling downstream.</p>
</blockquote>
<p>Note that &quot;river miles&quot; measures from the river's mouth, so the flood surge moves from right to left in the animation. More details at the link below.</p>
<p>AdventuresInData: <a target="_blank" href="http://adventuresindata.blogspot.com/2016/03/animated-flow-in-non-tidal-delaware.html">Animated Flow in the non-tidal Delaware River</a></p>
</div>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/visualizing-a-flood-with-r/"></div></div><div><a data-url="http://www.r-bloggers.com/visualizing-a-flood-with-r/" data-counturl="http://www.r-bloggers.com/visualizing-a-flood-with-r/" data-count="vertical" data-text="Visualizing a flood with R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://blog.revolutionanalytics.com/2016/06/visualizing-a-flood-with-r.html"> Revolutions</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/UCPC4ItZHqE"></a></div>