multi_dittoDimPlot {dittoSeq} | R Documentation |
Generates multiple dittoDimPlots arranged in a grid.
multi_dittoDimPlot( object, vars, legend.show = FALSE, ncol = NULL, nrow = NULL, axes.labels.show = FALSE, xlab = NA, ylab = NA, OUT.List = FALSE, ... )
object |
A Seurat or SingleCellExperiment object to work with |
vars |
c("var1","var2","var3",...). A list of vars from which to generate the separate plots |
legend.show, xlab, ylab, ... |
other paramters passed to |
ncol, nrow |
Integer/NULL. How many columns or rows the plots should be arranged into |
axes.labels.show |
Logical. Whether a axis labels should be shown. Ignored if xlab or ylab are set manually. |
OUT.List |
Logical. (Default = FALSE) When set to |
Given multiple 'var' parameters to vars
, this function will output a dittoDimPlot for each one, arranged into a grid, with some slight tweaks to the defaults.
If OUT.list
was set to TRUE, the list of individual plots, named by the vars
being shown in each, is output instead of the combined multi-plot.
All parameters that can be adjusted in dittoDimPlot can be adjusted here, but the only parameter that can be adjusted between each is the var
.
Daniel Bunis
# dittoSeq handles bulk and single-cell data quit similarly. # The SingleCellExperiment object structure is used for both, # but all functions can be used similarly directly on Seurat # objects as well. example(importDittoBulk, echo = FALSE) myRNA genes <- getGenes(myRNA)[1:5] multi_dittoDimPlot(myRNA, c(genes, "clustering"))