
compareCohorts volcano plot
plotCohortsVolcano.Rd
compareCohorts volcano plot
Usage
plotCohortsVolcano(
results,
x = "logFC",
y = "P.Value",
labels = NULL,
log10_pval = TRUE,
select_features = NULL
)
Arguments
- results
data.frame output of compareCohorts
- x
Column in results to use as x-axis. Log fold change is recommended (default = logFC)
- y
Column in results to use as y-axis. P-value is recommended (default = P.Value)
- labels
what labels to use for clusters or other information that comprise the dots on the volcano plot (default = rownames(results))
- log10_pval
whether to log transform y-axis before plotting (default = TRUE)
- select_features
(character) (optional) in case you want to specify which values from the
cluster
column are included in the visualization.
Details
See vignette("AnalysisGuide7_Cohort_comparison")
for an example workflow that makes use of this function.