Plot current data coloured by flag value
adcp_plot_flags.RdPlot current data coloured by flag value
Usage
adcp_plot_flags(
dat,
qc_tests = c("grossrange", "rolling_sd", "spike", "qc"),
vars = "all",
labels = TRUE,
n_col = NULL,
flag_title = TRUE,
plotly_friendly = FALSE
)Arguments
- dat
Data frame of flagged current data in long or wide format. Must include at least one column name with the string "_flag_variable".
- qc_tests
Character string of QC tests to plot. Default is
qc_tests = c("grossrange", "rolling_sd", "spike").- vars
Character vector of variables to plot. Default is
vars = "all", which will make a plot for each recognized variable indat.- labels
Logical argument indicating whether to convert numeric flag values to text labels for the legend.
- n_col
Number of columns for faceted plots.
- flag_title
Logical argument indicating whether to include a ggtitle of the qc test and variable plotted.
- plotly_friendly
Logical argument. If
TRUE, the legend will be plotted whenplotly::ggplotlyis called onp. Default isFALSE, which makes the legend look better in a static figure.