sumDistSample {MatrixQCvis} | R Documentation

## Plot the sum of distances to other samples

### Description

The function 'sumDistSample' creates a plot showing the sum of distance of a sample to other samples.

### Usage

    sumDistSample(d, title = "raw")

### Arguments

`d` | 'matrix' containing distances, obtained from 'distShiny'
`title` | 'character' specifying the title to be added to the plot

### Value

'gg' object from 'ggplot2'

### Examples

    a <- matrix(1:100, nrow = 10, ncol = 10,
                dimnames = list(1:10, paste("sample", 1:10)))
    dist <- distShiny(a)

    sumDistSample(dist, title = "raw")

[Package MatrixQCvis version 1.2.4 Index]