Skip to contents

The run sequence plot provides an overview of the analysis design and timelines, which can be useful for subsequent processing steps. The plot illustrates the batch structure, the quality control (QC) samples included with their respective positions, and additional information regarding the date, duration, and run time of the analysis.

Setting show_timestamp = TRUE allows you to check for any interruptions in the analysis timeline.

Usage

plot_runsequence(
  data = NULL,
  qc_types = NA,
  show_batches = TRUE,
  show_timestamp = FALSE,
  add_info_title = TRUE,
  single_row = FALSE,
  segment_width = 0.5,
  batches_as_shades = FALSE,
  batch_line_color = "#b6f0c5",
  batch_shading_color = "grey85",
  scale_factor = 1,
  base_font_size = 8
)

Arguments

data

MidarExperiment object

qc_types

QC types to be shown. Can be a vector of QC types or a regular expression pattern. NA (default) displays all available QC/Sample types.

show_batches

Logical, whether to show batch separators in the plot

show_timestamp

Logical, whether to use the acquisition timestamp as the x-axis instead of the run sequence number

add_info_title

Logical, whether to add a title with the experiment title, analysis date, and analysis times

single_row

Logical, whether to show all QC types in a single row

segment_width

Numeric, line width of the segments

batches_as_shades

Logical, whether to show batches as shaded areas instead of line separators

batch_line_color

Color of the batch separator lines

batch_shading_color

Color of the batch shaded areas

scale_factor

Numeric, overall plot scale factor

base_font_size

Numeric, base font size for the plot

Value

A ggplot object representing the run sequence plot