View source: R/multi_plotters.R
multi_dittoDimPlot | R Documentation |
Generates dittoDimPlots for multiple features.
multi_dittoDimPlot(
object,
vars,
ncol = NULL,
nrow = NULL,
axes.labels.show = FALSE,
list.out = FALSE,
OUT.List = NULL,
...,
xlab = NA,
ylab = NA,
data.out = FALSE,
do.hover = FALSE,
legend.show = FALSE
)
object |
A Seurat, SingleCellExperiment, or SummarizedExperiment object. |
vars |
c("var1","var2","var3",...). A vector of vars ('var' in regular |
ncol , nrow |
Integer or NULL. How many columns or rows the plots should be arranged into. |
axes.labels.show |
Logical. Whether axis labels should be shown.
Subordinate to |
list.out |
Logical. (Default = FALSE) When set to |
OUT.List |
Deprecated. Use |
... , xlab , ylab , data.out , do.hover , legend.show |
other parameters passed to |
Given multiple 'var' parameters to vars
, this function creates a dittoDimPlot
for each one, with minor defaulting tweaks (see below).
By default, these dittoDimPlots are arranged into a grid.
Alternatively, if list.out
is set to TRUE
, they are output as a list with each plot named as the vars
being shown.
All parameters that can be adjusted in dittoDimPlot can be adjusted here, but the only input that will change between plots is var
.
A set of dittoDimPlots either arranged into a grid (default), or output as a list.
axes labels are not shown by default to save space (control with axes.labels.show
or xlab
and ylab
)
legends are also not shown to save space (control with legend.show
)
Daniel Bunis
multi_dittoDimPlotVaryCells
for an alternate dittoDimPlot
multi-plotter where the cells/samples are varied between plots.
dittoDimPlot
for the base dittoDimPlot plotting function and details on all accepted inputs.
example(importDittoBulk, echo = FALSE)
multi_dittoDimPlot(myRNA, c("gene1", "gene2", "clustering"))
# Control grid shape with ncol / nrow
multi_dittoDimPlot(myRNA, c("gene1", "gene2", "clustering"),
nrow = 1)
# Output as list instead
multi_dittoDimPlot(myRNA, c("gene1", "gene2", "clustering"),
list.out = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.