| plotClusters | R Documentation |
This function draws a scatter plot with samples grouped based of signature exposures. Only the closest cluster to the input sample is colored.
plotClusters(matrix, samples)
matrix |
matrix variables in rows and samples in columns |
samples |
vector with samples in the closest cluster of the input sample |
A plot with samples clustered by similarity in signature exposition
matrix<-cbind(s1=runif(10, min=0, max=1), s2=runif(10, min=0, max=1),
s3=runif(10, min=0, max=1))
rownames(matrix)<-paste0("c", seq(1,10))
cell<-matrix(runif(n = 3, min = 0, max = 1))
samples<-getClusterSamples(t(matrix), cell, include=FALSE)
plotClusters(t(matrix), samples)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.