pbMDS {muscat} | R Documentation

## Pseudobulk-level MDS plot

### Description

Renders a multidimensional scaling (MDS) where each point represents a cluster-sample instance; with points colored by cluster ID and shaped by group ID.

### Usage

    pbMDS(x)

### Arguments

`x` | a `SingleCellExperiment` containing cluster-sample pseudobulks as returned by `aggregateData` with argument `by = c("cluster_id", "sample_id")`.

### Value

a `ggplot` object.

### Author(s)

Helena L Crowell & Mark D Robinson

### Examples

    data(sce)
    pb <- aggregateData(sce)
    pbMDS(pb)

[Package muscat version 1.2.1 Index]