plot_USGSdrought | R Documentation |
This function is hijacked from a blog post by Laura DeCicco at https://waterdata.usgs.gov/blog/moving-averages/.
I changed it a little to include compatibility with batch_USGSdv and also the ability to
change the rolling average, e.g. rolln
. For more details visit the blog. Also, this function is expensive so it
will take about 5 to 15 seconds to produce plot depending on period of record.
plot_USGSdrought(
procDV,
site = NULL,
rolln = 30,
startDate = "2010-01-01",
endDate = "2015-01-01",
smooth.span = NULL
)
procDV |
A previously created batch_USGSdv object. |
site |
A USGS NWIS site. |
rolln |
A |
startDate |
A |
endDate |
A |
smooth.span |
A |
A ggplot. Works with plotly::ggplotly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.