plotVarianceExplained: plot variance explained by one specific feature

Description Usage Arguments See Also Examples

View source: R/plotFunctions.R

Description

plot the variances explained by the explanatory variable

Usage

1
2
3
4
5
6
7
plotVarianceExplained(
  sces,
  feature = c("genevar_by_counts", "genevar_by_features", "genevar_by_Mt",
    "genevar_by_rRNA"),
  scolors = 1:length(sces),
  lineSize = 1
)

Arguments

sces

list; a list of SingleCellExperiment objects; each object containing QC metadata for each dataset; (results from Process_scRNAseq )

feature

string; the explanatory variable to plot; feature should be genevar_by_counts, genevar_by_features, genevar_by_Mt, or genevar_by_rRNA; (default: genevar_by_counts)

scolors

a vector of color; the color of each dataset (default: 1:length(sces))

lineSize

integer; the line size of the fitted mean-variance trend curve (default: 1)

See Also

Process_scRNAseq

Examples

1
2
3
4
5
6
7
8
library(scRNABatchQC)
sces<-Process_scRNAseq(inputfiles=c("https://github.com/liuqivandy/scRNABatchQC/raw/master/bioplar1.csv.gz",
                                    "https://github.com/liuqivandy/scRNABatchQC/raw/master/bioplar5.csv.gz"))
  
#plot the variance explained by the total_counts 
plotVarianceExplained(sces)
#plot the variance explained by the total number of genes
plotVarianceExplained(sces,feature="genevar_by_features")

liuqivandy/scRNABatchQC documentation built on March 24, 2021, 11:01 p.m.