plotVariableGenes: plotVariableGenes

Description Usage Arguments Value Examples

View source: R/ascend_plots.R

Description

Generates a scatter plot to aid in the detection of variable genes. Scatter plot depicts Correlation of Variance (CV) vs log10(mean gene expression). Please use the calculateCV function before using this function.

Usage

1
2
plotVariableGenes(object, ngenes = NULL, label.size = 3,
  point.size = 0.5, check.overlap = FALSE)

Arguments

object

An EMSet that has had CV values calculated

ngenes

Select n most variable genes to plot (Optional)

label.size

Size of gene labels

point.size

Size of scatter points

check.overlap

Hide overlapping labels (Default: FALSE)

Value

A scatter plot rendered by ggplot2's geom_point function.

Examples

1
2
3
4
em_set <- ascend::analyzed_set
em_set <- calculateCV(em_set)
variable_gene_plot <- plotVariableGenes(em_set, ngenes = 1500, 
label.size = 3, point.size = 0.5, check.overlap = TRUE)

IMB-Computational-Genomics-Lab/ascend documentation built on Aug. 29, 2019, 4:10 a.m.