View source: R/plotInitialGuess.R
plotInitialGuess | R Documentation |
Plot preliminary classification from initialGuess
plotInitialGuess(
x,
IG = NULL,
fit = NULL,
type = c("both", "full", "truncated")
)
x |
The score (ie. debris score, doublet score, etc.) to be used for predicting each event's label (eg. "doublet" vs. "cell"). |
IG |
If NULL, the function |
fit |
If left blank or NULL, the best fit as determined by BIC will be
plotted. Otherwise, a numeric value of 1, 2, or 3 can be be selected to
plot single normal fit, mixture of two normals, or the mixture of three
normals as fit by |
type |
Type of graph to be plotted. If 'truncated' is selected, only half of the first normal distribution will be plotted. If 'both' is selected, both the truncated and full plot will be plotted. |
A histogram that shows the score with the mixture of normal distributions overlayed.
data("raw_data", package = "CATALYST")
sce <- readCytof(raw_data, beads = "Beads", viability = c("cisPt1", "cisPt2"))
sce <- initialDoublet(sce)
plotInitialGuess(scores(sce, "doublet"), type = "both")
plotInitialGuess(scores(sce, "doublet"), type = "truncated")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.