bc_plot_pair: Barcode read count 2D scatter plot for given pairs

bc_plot_pairR Documentation

Barcode read count 2D scatter plot for given pairs

Description

Draws scatter plot for barcode read count between given pairs of samples with a BarcodeObj object. This function will return a scatter plot matrix contains the scatter plots for all given sample pairs.

Usage

bc_plot_pair(
  barcodeObj,
  sample_x,
  sample_y,
  count_marks_x = NULL,
  count_marks_y = NULL,
  highlight = NULL,
  log_coord = TRUE,
  alpha = 0.7
)

## S4 method for signature 'BarcodeObj'
bc_plot_pair(
  barcodeObj,
  sample_x,
  sample_y,
  count_marks_x = NULL,
  count_marks_y = count_marks_x,
  highlight = NULL,
  log_coord = TRUE,
  alpha = 0.7
)

Arguments

barcodeObj

A BarcodeObj object.

sample_x

A character vector or a integer vector, specifying the sample in x axis of each scatter plot. It can be the sample names in BarcodeObj or the sample index value.

sample_y

A character vector or a integer vector, similar to sample_x, specifying the samples used for y axis. It can be the sample names or the sample index value.

count_marks_x

A numeric vector used to mark the cutoff point for samples in x axis

count_marks_y

A number vector used to mark the cutoff point for samples in the y-axis.

highlight

A character vector, specifying the barcodes that need to be highlighted.

log_coord

A logical value, if TRUE (default), the x and y coordinates of the scatter will be transformed by log10.

alpha

A numeric between 0 and 1, specifies the transparency of the dots in the scatter plot.

Value

Scatter plot matrix.

Examples


data(bc_obj)

bc_names(bc_obj)

bc_plot_pair(barcodeObj=bc_obj, sample_x="test1", sample_y="test2",
    count_marks_x=30, count_marks_y=20)
###

wenjie1991/CellBarcode documentation built on Aug. 10, 2024, 11:02 a.m.