multi_dittoDimPlot {dittoSeq} | R Documentation

## Generates multiple dittoDimPlots arranged in a grid.

### Description

Generates multiple dittoDimPlots arranged in a grid.

### Usage

    multi_dittoDimPlot(
      object,
      vars,
      legend.show = FALSE,
      ncol = NULL,
      nrow = NULL,
      axes.labels.show = FALSE,
      xlab = NA,
      ylab = NA,
      OUT.List = FALSE,
      ...
    )

### Arguments

`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 `dittoDimPlot`.
`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 `TRUE`, a list of the individual plots, named by the `vars` being shown in each, is output instead of the combined multi-plot.

### Value

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`.

### Author(s)

Daniel Bunis

### Examples

    # 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"))

[Package dittoSeq version 1.0.2 Index]