View source: R/wellHydrograph.R
wellHydrograph | R Documentation |
Creates a ggplot2 object of hydrograph of well depths.
wellHydrograph(
wellObs,
depthCol = 1,
fakeDates = FALSE,
hydroYear = TRUE,
startMonth = 10,
quiet = TRUE
)
wellObs |
Required. CRHMr obs data frame of daily depths. |
depthCol |
Optional. Column containing depths. Default is 1. |
fakeDates |
Optional. If set to |
hydroYear |
Optional. If |
startMonth |
Optional. Sets the first month of the hydrological year (if required). |
quiet |
Optional. Suppresses display of messages, except for errors. If you are calling this function in an R script, you will usually leave |
If successful, returns a ggplot2 object. If unsuccessful, returns FALSE
.
Kevin Shook
## Not run:
p <- wellHydrograph(well, fakeDates = FALSE)
#' # re-plot with fake dates
p <- wellHydrograph(well, fakeDates = TRUE, hydroYear = TRUE)
p <- p + ggplot2::facet_wrap(~year)
p <- p + ggplot2::scale_x_date(date_breaks = "3 months",
date_labels = "%b")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.