This function creates an interactive plot using dygraphs
package
event_plot(
dataframe,
q,
datetime,
he,
ssc,
ylabel = "Water discharge",
y2label = "Suspended Sediment Concentration"
)
A data set object
Water discharge variable (or water stage)
Datetime variable (column in POSIXct format)
Hydrological event variable (or other day column)
Suspended sediment concentration variable (to plot on a second axis)
Y-axis label
Second Y-axis label
The `event_plot` function returns object of class "dygraphs", "htmlwidget"