Producing time series plots of biology and flow data
plot_hev.Rd
Intended for plotting data for one site at a time; data may need to be subset or filtered by user prior to plotting.
The function generates a ggplot object, that is optionally saved as a .png file. If multiplot = TRUE, the png file is named "Multi_Plot.png". If multiplot = FALSE, a separate png file is produced for each biology metric, named "biolmetric_Plot.png".
Usage
plot_hev(data, date_col, flow_stat, biol_metric, multiplot = TRUE, save = FALSE, save_dir = getwd(), clr_by = NULL)
Arguments
- data
Data to plot.
- date_col
Name of column containing time variable for x-axis.
- flow_stat
Names of up to two flow statistics of interest.
- biol_metric
Names of up to four biology metrics of interest.
- multiplot
If TRUE, a multiplot of up to four biology metrics is produced; if FALSE, a single plot is produced for each biology metric. Default = TRUE.
- save
Specifies if outputs should also be saved as png files. Default = FALSE.
- save_dir
Path to folder where png files are to be saved; Default = Current working directory.
- clr_by
Selected variable by which to colour biol_metric points. Default = NULL.