| plotRelativeDensities {SwathXtend} | R Documentation |
Overlay all relative densities
plotRelativeDensities(mat, Group = NULL, idx = NULL, main = "Densities")
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 |
Plotting only
mat = matrix(abs(rnorm(50000)), ncol=5)
mat[,5] = mat[,5] + 2
plotRelativeDensities(mat, Group=c(rep("A",4),"B"), idx=1)