Skip to contents

plotDiagnostics() draws four diagnostic plots of a model of a gene of the gene lists of sc.filter(): the normal Q-Q plot of the standardised residuals, the standardised residuals and their square root against the fitted values (scale-location), and the observed against the predicted counts.

Usage

plotDiagnostics(scmpObj, feature_id, model = "optimized")

Arguments

scmpObj

A ScMaSigPro object.

feature_id

The name of a gene.

model

The model: "optimized", the model selected by sc.t.fit(); "full"; or "intercept", the intercept-only model.

Value

A patchwork object with four ggplot panels.

Author

Priyansh Srivastava spriyansh29@gmail.com

Examples

data("scmp.ob", package = "scMaSigPro")
if (requireNamespace("patchwork", quietly = TRUE)) {
    plotDiagnostics(scmp.ob, "Gene10")
}