Description Usage Arguments Examples
This function plots the first two principal components for a transaction matrix
1 |
tm |
a transition matrix for a bipartite network |
title |
The title of the plot |
clusters |
A vector indicating the colors to be plotted for each node |
alpha |
A vector indicating the level of transparency to be plotted for each node |
1 2 3 4 5 | data(yeast.panda)
t.matrix <- transformation.matrix(yeast.panda$cell.cycle, yeast.panda$stress.response)
p.values <- runif(ncol(t.matrix)) # Generate a uniform random to simulate p.values
clusters <- kmeans(t.matrix,3)$cluster # Color the nodes according to cluster membership
pca.plot(t.matrix,title="PCA Plot of Transition - Cell Cycle vs Stress Response", clusters=clusters,alpha=p.values)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.