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

Description Usage Arguments Value Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 y axis.

highlight

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

log_coord

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

alpha

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

Value

Scatter plot matrix.

Examples

1
2
3
4
5
6
7
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/CellBarocde documentation built on Dec. 23, 2021, 5:11 p.m.