plot_composite_data | R Documentation |
Create composite hydrograph plot
plot_composite_data(
x,
num_years = NA,
parameter_cd = "72019",
plot_title = "",
subtitle = "U.S. Geological Survey"
)
x |
aquifer data frame. Requires at least 3 columns. Two are required "site_no", "year", and "value". |
num_years |
integer number of years required. If |
parameter_cd |
character, 5-digit parameter code, default is "72019". |
plot_title |
character title included on plot. |
subtitle |
character. Sub-title for plot, default is "U.S. Geological Survey". |
ggplot2 object
aquifer_data <- aquifer_data
comp_data <- plot_composite_data(aquifer_data,
num_years = 30,
parameter_cd = "72019",
plot_title = "Calendar Year")
comp_data
# Do it on a water year:
aquifer_data$cal_year <- aquifer_data$year
aquifer_data$year <- aquifer_data$water_year
plot_composite_data(aquifer_data,
parameter_cd = "72019",
num_years = 30,
plot_title = "Water Year")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.