knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Note: The data feeds used by this package are no longer publicly available, so this package does not work
acewater provides an interface to the real-time water monitoring data provided by the Water Management Section of the Seattle District Corps of Engineers, which covers most of Washington, Northern Idaho, and Northwestern Montana.
The main function, get_water_conditions
returns a tidy data frame (a tibble).
You can install acewater from github with:
# install.packages("devtools") devtools::install_github("briandconnelly/acewater")
library(acewater) (gcl <- get_water_conditions(station = "GCL", project = "EWA"))
We can easily plot the water conditions for a given station (if ggplot2 is installed).
library(ggplot2) autoplot(gcl)
Here, we see that this station monitors different properties:
(fblw <- get_water_conditions(station = "FBLW", project = "LKW")) autoplot(fblw)
We can use purrr to combine data from multiple stations into a tidy data frame. Here, we'll get data from a few stations along the Lake Washington Ship Canal.
(lkw <- purrr::map_df(c("UBLW", "FBLW", "LLLW"), get_water_conditions, project = "LKW")) autoplot(lkw)
Because the data retrieved by acewater are preliminary and have not been verified or approved by the agencies collecting them, inaccuracies may be present due to instrument malfunctions or physical changes at the measurement site.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.