Skip to contents

Create composite hydrograph plot

Usage

plot_normalized_data(
  x,
  num_years = NA,
  parameter_cd = "72019",
  plot_title = "",
  subtitle = "U.S. Geological Survey"
)

Arguments

x

aquifer data frame. Requires at least 3 columns. Two are required "site_no", "year", and "value".

num_years

integer number of years required to the analysis. If NA, the analysis will default to the range of the data in x.

parameter_cd

character, 5-digit parameter code, default is "72019".

plot_title

character title of plot.

subtitle

character. Sub-title for plot, default is "U.S. Geological Survey".

Value

ggplot2 object

Examples

aquifer_data <- aquifer_data

norm_data <- plot_normalized_data(aquifer_data, 
                                  parameter_cd = "72019",
                                  num_years = 30)
norm_data


aquifer_data$cal_year <- aquifer_data$year
aquifer_data$year <- aquifer_data$water_year
plot_normalized_data(aquifer_data, 
                     parameter_cd = "72019",
                     num_years = 30)