Skip to contents

Draw a time series of a chosen water quality parameter (e.g. "pH", "Turbidity", etc.) from the yarra_wq dataset. The data are in long format: each row is one observation of one parameter at one time.

Usage

plot_yarra_metric(parameter_name = "pH", site_name = NULL)

Arguments

parameter_name

Character. Which parameter to plot, e.g. "pH".

site_name

Optional character. If provided, filter to that site (matches the name column in yarra_wq). If NULL, use all sites.

Value

A ggplot object (time series of measured values).

Examples

# After loading the package:
# plot_yarra_metric(parameter_name = "pH")
# plot_yarra_metric(parameter_name = "pH",
#                    site_name = "YARRA @ WARRANDYTE (ROAD BRIDGE)")