View source: R/plot_hydro_site_year.R
| plot_hydro_site_year | R Documentation | 
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.
plot_hydro_site_year(
  df,
  yvar,
  site,
  years = 2013:as.numeric(format(Sys.Date(), "%Y"))
)
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  | 
Returns a panel of hydrographs during the growing season for each year in the data frame.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.