plot_QC_bead_count_boxplot: Bead count plot

Description Usage Arguments Value Author(s)

View source: R/plot_QC.SBA.R

Description

Display bead counts across sample and binders.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_QC_bead_count_boxplot(
  bead_count,
  sample_order = NULL,
  color_tbl_b = default_color_SBA_bead(T),
  color_tbl_s = default_color_SBA_ctrl_samples(sampleid),
  main = deparse(substitute(bead_count)),
  xlab = c("Beads", "Sample (sorted)"),
  ylab = "Bead count",
  ylim,
  ...
)

Arguments

bead_count

1) a data.frame of bead counts having sample IDs at the first column like the file from LIMS, 2) a file name that contains such data, or 3) a matrix of such values only where sample IDs are in rownames

sample_order

the order of sample in plots. The default is same order as given table by bead_count.

color_tbl_b

the colors of the binders employed for positive or negative control on plot. The information should be provided as a data.frame, in which columns are name, reg (regular expression to find the binder), col (color), and type (positive , negative, or measure). If this is given as NULL, it results in no coloring.

color_tbl_s

colors of samples on the plot. The information should be provided as a data.frame that has name, reg (regular expression to find the sample), col (color), type (negative or replicated).
If this is NULL, then no coloring is applied. The default is default_color_SBA_ctrl_samples(sampleid), where sampleid is a vector of sample IDs that are extracted from bead_count

main, ylab, ylim, ...

same as those for boxplot

xlab

two characters. The first one is for the plot of binders, while the 2nd is for sample plot

Value

a list of color_tbl_b and color_tbl_s

Author(s)

Mun-Gwan Hong <mun-gwan.hong@scilifelab.se>


Rundmus/BAf-R_package documentation built on May 18, 2020, 12:59 p.m.