<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/a-case-study-in-reproducible-model-building/"></div></div><div><a data-url="https://www.r-bloggers.com/a-case-study-in-reproducible-model-building/" data-counturl="https://www.r-bloggers.com/a-case-study-in-reproducible-model-building/" data-count="horizontal" data-text="A Case Study in Reproducible Model Building" 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://jfisher-usgs.github.io/r/2016/08/04/wrv-case-study"> jfisher-usgs</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><img alt="center" src="https://i0.wp.com/jfisher-usgs.github.io/figs/2016-08-04-wrv-case-study/fig1.png?w=456" data-recalc-dims="1"></p>
<p>The U.S. Geological Survey (<a target="_blank" href="https://www.usgs.gov/">USGS</a>) recently published a report describing a groundwater-flow model of the Wood River Valley (WRV) aquifer system.<br>
What makes this report unique (at least in my opinion) was the authors’ desire to make their work as reproducible as possible under budgetary constraints.<br>
The collection of raw data, source code, and processing instructions used to build and analyze the model was placed in an non-general-use R package named <strong>wrv</strong>.<br>
The package repository can be found on <a target="_blank" href="https://github.com/USGS-R/wrv">GitHub</a>.<br>
Commands for installing the package are as follows:</p>
<div>
<pre><code><span>repos</span><span> </span><span>&lt;-</span><span> </span><span>c</span><span>(</span><span>&quot;http://owi.usgs.gov/R&quot;</span><span>,</span><span> </span><span>getOption</span><span>(</span><span>&quot;repos&quot;</span><span>))</span><span>
</span><span>install.packages</span><span>(</span><span>&quot;wrv&quot;</span><span>,</span><span> </span><span>repos</span><span> </span><span>=</span><span> </span><span>repos</span><span>,</span><span> </span><span>dependencies</span><span> </span><span>=</span><span> </span><span>TRUE</span><span>,</span><span> </span><span>type</span><span> </span><span>=</span><span> </span><span>&quot;both&quot;</span><span>)</span><span> </span><span># about 100 MB, so be patient
</span></code></pre>
</div>
<p>While many of the functions are intended for non-general use, there are a few functions that the larger R community might find of interest.<br>
For example, the <code>PlotMap</code>, <code>PlotGraph</code>, and <code>PlotCrossSection</code> functions have been designed for general use.<br>
Report documentation was included in the <strong>wrv</strong> package as vignettes; these files are also available from the<br>
<a target="_blank" href="http://dx.doi.org/10.3133/sir20165080">USGS Publications Warehouse</a>.<br>
For a general overview of the project, I’ll recommend my<br>
<a target="_blank" href="https://channel9.msdn.com/Events/useR-international-R-User-conference/useR2016/A-Case-Study-in-Reproducible-Model-Building-Simulating-Groundwater-Flow-in-the-Wood-River-Valley-Aqu">useR! 2016 talk</a>:</p>
<div>
<iframe height="315" width="560" allowfullscreen="" src="https://channel9.msdn.com/Events/useR-international-R-User-conference/useR2016/A-Case-Study-in-Reproducible-Model-Building-Simulating-Groundwater-Flow-in-the-Wood-River-Valley-Aqu/player"></iframe>
</div>
<p>Any comments or suggestions regarding our approach to reproducible model building can be left below.<br>
Please realize that your opinions go a long way in determining whether this type of approach will be used in future projects.</p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/a-case-study-in-reproducible-model-building/"></div></div><div><a data-url="https://www.r-bloggers.com/a-case-study-in-reproducible-model-building/" data-counturl="https://www.r-bloggers.com/a-case-study-in-reproducible-model-building/" data-count="vertical" data-text="A Case Study in Reproducible Model Building" 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://jfisher-usgs.github.io/r/2016/08/04/wrv-case-study"> jfisher-usgs</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://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="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/LaUQs2tSLSk"></a></div>