Create a scatterplot of injection correlations.

plot_compare_injection(
  mzroll_list,
  grouping_vars = "condition",
  peak_quant_var = "log2_abundance"
)

Arguments

mzroll_list

output of process_mzroll or process_mzroll_multi

  • features: one row per unique analyte (defined by a unique groupId),

  • samples: one row per unique sample (defined by a unique sampleId),

  • measurements: one row per peak (samples x peakgroups)

grouping_vars

character vector of sample variables to use for grouping

peak_quant_var

variable to plot in comparison

Examples

plot_compare_injection( nplug_mzroll_augmented, grouping_vars = "condition", peak_quant_var = "log2_abundance" )
#> 3 sample variables will be dropped since they #> - vary for the same grouping_vars: #> - samples_tbl_row, sample_name, replicate