Learn R Programming

SwathXtend (version 1.0.0)

plotRelativeDensities: Plotting utility to overlay all relative densities

Description

Overlay all relative densities

Usage

plotRelativeDensities(mat, Group = NULL, idx = NULL, main = "Densities")

Arguments

mat
Matrix with positive entries, samples as columns
Group
The factor showing the sample membership, of length ncol(mat)
idx
Number between 1:ncol(mat); which sample to use as denominator, first one by default
main
Title; optional

Value

Plotting only

Details

References

See Also

Examples

Run this code
mat = matrix(abs(rnorm(50000)), ncol=5)
mat[,5] = mat[,5] + 2

plotRelativeDensities(mat, Group=c(rep("A",4),"B"), idx=1)

Run the code above in your browser using DataLab