visHist | R Documentation |
Plot pvalue histograms of metric score distributions
visHist(
res_object,
metric = "cms",
prefix = TRUE,
n_col = 1,
metric_prefix = NULL
)
res_object |
|
metric |
Character vector. Specify names of |
prefix |
Boolean. Is ‘metric' used to specify column’s prefix(true) or complete column names (False). |
n_col |
Numeric. Number of columns of the pval histogram. |
metric_prefix |
Former parameter to define prefix of the metric to be plotted. Will stop and ask for the new syntax. |
Plots metric score distribution similar to a pvalue histogram
distribution. Without dataset-specific bias, cms scores should be approx.
flat distributed. If 'res_object' is a matrix or data.frame,
it will create a histogram for each column. If 'res_object' is a
SingleCellExperiment
object, it will create a histogram of all
colData(res_object)
that start with or are specified in 'metric'.
a ggplot
object.
Other visualize metric functions:
visMetric()
,
visOverview()
library(SingleCellExperiment)
sim_list <- readRDS(system.file("extdata/sim50.rds", package = "CellMixS"))
sce <- sim_list[[1]][, c(1:50)]
sce_cms <- cms(sce, "batch", k = 20, n_dim = 2)
visHist(sce_cms)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.