Learn R Programming

RaceID (version 0.2.3)

plotPearsonRes: Function for plotting the variance of Pearson residuals

Description

This function plots the variance versus the mean of the Pearson residuals obtained by the negative binomial regression computed by the function compNoise if regNB is TRUE. A local regression is also shown.

Usage

plotPearsonRes(noise, log = FALSE)

Value

None

Arguments

noise

List object with the background noise model and a variability matrix, returned by the compNoise function.

log

logical. If TRUE then the y-axis is log-transformed. Default is FALSE.

Examples

Run this code
res <- pruneKnn(intestinalDataSmall,metric="pearson",knn=10,alpha=1,no_cores=1,FSelect=FALSE)
noise <- compNoise(intestinalDataSmall,res,pvalue=0.01,genes = NULL,no_cores=1)
plotPearsonRes(noise,log=TRUE)

Run the code above in your browser using DataLab