plot_hydro_site_year: plot_hydro_site_year: Plots a hydrograph by each year within...

View source: R/plot_hydro_site_year.R

plot_hydro_site_yearR Documentation

plot_hydro_site_year: Plots a hydrograph by each year within a site

Description

This function creates hydrographs of each year within a site. This function requires a data frame with the following fields: doy_h, year, and water level field. The doy_h field is the day of year with a decimal point for hour (eg 173.09 is June 22 at 9am). Year is a 4 digit number which is a group variable and used for facet wrap.

Usage

plot_hydro_site_year(
  df,
  yvar,
  site,
  years = 2013:as.numeric(format(Sys.Date(), "%Y"))
)

Arguments

df

the name of the data frame

yvar

Quoted name of the water level field

site

Quoted name of the site for the title

years

years to plot

Value

Returns a panel of hydrographs during the growing season for each year in the data frame.

Examples

## Not run: 
welld<-read.csv('./Analysis/FINAL_DATA/well_prec_data_2013-2018.csv')
plot_hydro_site_year(df=welld,yvar='BIGH_WL',site='Big Heath')
plot_hydro_site_year(df=welld,yvar='DUCK_WL',site='Duck Pond')

## End(Not run)


KateMMiller/wetlandACAD documentation built on Dec. 21, 2024, 1:14 a.m.