scatter_plot: Scatter Plot

Description Usage Arguments Value Examples

View source: R/scatter_plot.R

Description

Plots a scatter plot of two samples in the Summarized Experiment object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
scatter_plot(
  your_SE,
  assay = "proportions",
  plot_labels = colnames(your_SE),
  method_corr = "pearson",
  display_corr = TRUE,
  point_size = 0.5,
  your_title = "",
  text_size = 12
)

Arguments

your_SE

A Summarized Experiment object of two samples.

assay

The choice of assay to plot on the scatter plot. Set to "proportions" by default.

plot_labels

The labels for the X and Y axis of the plot

method_corr

Character. One of "pearson", "spearman", or "kendall". Can also use "manhattan" to compute manhattan distance instead.

display_corr

Logical. Whether to display the computer correlation or not.

point_size

Numeric. The size of the points being plotted.

your_title

Logical. The title for the plot.

text_size

Numeric. Size of text in plot.

Value

Displays a scatter plot of the specified assay for the specified samples in your_SE with correlation value optionally displayed.

Examples

1
2
3
data(wu_subset)
scatter_plot(your_SE = wu_subset[, c(4, 8)])
# "

d93espinoza/barcodetrackR documentation built on April 28, 2021, 1:58 p.m.