plot.graphclust: Plot phylogenetically constrained clustering

Description Usage Arguments Examples

View source: R/graphClust.R

Description

This function produces three plots (selectable by which): a plot of edges selection based on phylogenetic against trait distances of taxa pairs, a plot of the graph produced with the selected edges and a plot of the clustered phylogenetic tree.

Usage

1
2
3
## S3 method for class 'graphclust'
plot(x, which = c("selection", "graph", "tree"),
  ask = TRUE, colored = TRUE, ...)

Arguments

x

a graphclust object as produced by graphClust.

which

a character vector to select plots. Must be one or more of "selection", "graph", "tree".

ask

logical if TRUE (default), the user is asked before each plot.

colored

logical indicating if plots must include colors.

...

further arguments to be passed to or from other methods. They are currently ignored in this function.

Examples

1
2
3
4
5
data(navic)
gC <- graphClust(navic, lim.phylo = 1, lim.trait = 2, scale.lim = FALSE)
plot.graphclust(gC, which = "selection", ask = FALSE)
plot.graphclust(gC, which = "graph", ask = FALSE)
plot.graphclust(gC, which = "tree", ask = FALSE)

phylosignal documentation built on May 30, 2017, 12:50 a.m.

Search within the phylosignal package
Search all R packages, documentation and source code