clustergram.plot.matlines: Plot function for clustergram

Description Usage Arguments Details Value Examples

View source: R/Clustergram.R

Description

Plot function for clustergram

Usage

1
2
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.

Details

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

Value

A clustergram plot.

Examples

 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)

EcotoneFinder documentation built on Feb. 17, 2021, 1:07 a.m.