cluster2pattern | R Documentation |
Function to make patterns of continuous weights from clusters.
cluster2pattern(clusters, NP, data, ...)
## S4 method for signature 'character'
cluster2pattern(clusters, data)
## S4 method for signature 'numeric'
cluster2pattern(clusters, data)
## S4 method for signature 'kmeans'
cluster2pattern(clusters, data)
## S4 method for signature 'hclust'
cluster2pattern(clusters, NP, data = NA)
clusters |
a cluster object which could be either an hclust or a kmeans object |
NP |
number of desired patterns |
data |
data used to make clusters object |
... |
Additional arguments to cluster2pattern |
An object of class pclust containing pattern weights corresponding for each cluster.
k.RNAseq6l3c3t<-kmeans(t(p.RNAseq6l3c3t),3)
cluster2pattern(clusters=k.RNAseq6l3c3t,data=p.RNAseq6l3c3t)
distp <- dist(t(p.RNAseq6l3c3t))
hc.RNAseq6l3c3t <- hclust(distp)
cluster2pattern(clusters=hc.RNAseq6l3c3t,NP=3,data=p.RNAseq6l3c3t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.