Plots the stacked score table from compare_runs() with one panel per
metric (free y axes) and the runs on the x axis, in their factor order:
input order, or render time for compare_runs(order = "timestamp"). Each
sample is a point, and QC samples are drawn as triangles. type = "box" adds
a box per run. type = "line" instead joins the run medians, which reads as
a trend when the runs are repeated measurements of the same standard.
Arguments
- runs_tbl
Output of
compare_runs().- metrics
Metric columns to plot (default: composite score, length-window fidelity and in-window depth). Panels are labelled with the metric names of
quality_thresholds_default().- type
"box"(default) or"line".- color_by
Optional column to colour the points by (e.g.
"Condition", which01_mhc_overviewwrites into its score csv).NULLfor none.
Examples
if (FALSE) { # \dontrun{
runs <- compare_runs(c("3_results/qc_week1", "3_results/qc_week2"),
order = "timestamp")
plot_run_trend(runs, type = "line")
} # }