Learn R Programming

EcotoneFinder (version 0.2.3)

clustergram.plot.matlines: Plot function for clustergram

Description

Plot function for clustergram

Usage

clustergram.plot.matlines(X, Y, k.range, x.range, y.range, COL,
  add.center.points, centers.points)

Arguments

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.

Value

A clustergram plot.

Details

Internal clustergram plot function. The input arguments are computed by the clustergram function directly.

Examples

Run this code
# NOT RUN {
####### 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)

# }

Run the code above in your browser using DataLab