The purpose of this function is to generate time series plots of ERRDAP data.
plot_ts(
ts,
fld_avg = "mean",
fld_sd = NULL,
fld_date = "date",
color = "red",
label = "Temperature (°C)",
...
)
file path to timeseries table as comma-separated value (CSV) or data frame (required)
field name containing value average; default = "mean"
field name containing standard deviation average (optional); default = NULL
field name containing date (required); default = "date"
color to plot value; default = "red"
label for y-axes of plot
additional parameters to pass to dygraphs::dygraph()
dygraphs::dygraph()
object of the time series plot
if (FALSE) {
ts <- here::here("data_tmp/ts.csv")
plot_ts(ts, main = "SST")
}