Description Usage Arguments Details Value Examples
Plot function for clustergram
1 2 | clustergram.plot.matlines(X, Y, k.range, x.range, y.range, COL,
add.center.points, centers.points)
|
X |
vector of the k number of cluster for the x-axis |
Y |
corrdinates of the cluster centers on the y-axis |
k.range |
x axis breaks. |
x.range |
x axis range. |
y.range |
y axis range (PCA scores). |
COL |
colour palette. |
add.center.points |
Should the centers be plotted as points. (see clustergram) |
centers.points |
matrix of centers position. |
Internal clustergram plot function. The input arguments are computed by the clustergram function directly.
A clustergram plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ####### Example data:
SyntheticTrial <- SyntheticData(SpeciesNum = 100,
CommunityNum = 3, SpCo = NULL,
Length = 500,
Parameters = list(a=c(40, 80, 50),
b=c(100,250,400),
c=rep(0.03,3)),
dev.c = .015, pal = c("#008585", "#FBF2C4", "#C7522B"))
######## 6 clustergram plots
for (i in 1:6) clustergram(as.matrix(SyntheticTrial[,2:ncol(SyntheticTrial)]),
clustering.function = clustergram.kmeans,
clustergram.plot = clustergram.plot.matlines,
k.range = 2:10, line.width = .2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.