image.twinspan | R Documentation |
Function draws an image
of mean pseudospecies values
in cells of final quadrat and species classifications together with
corresponding cluster trees.
## S3 method for class 'twinspan'
image(
x,
leadingspecies = FALSE,
reorder = FALSE,
height = c("level", "chi"),
...
)
x |
|
leadingspecies |
Show averages of leading species (most abundant, ties broken by frequency) of each cluster instead of averages of all species of the group. |
reorder |
Do not use the original |
height |
Use either division levels ( |
... |
Other arguments passed to |
The function is based on vegan function
tabasco
. Mean abundances in cells are shown
by colours which can be modified by the user (see
tabasco
). The mean abundances are either the
average values of all species of the species group (default), or
the average of the most abundant species of the species group (tied
abundances broken by species frequency) if
leadingspecies=TRUE
. The species groups are rows and quadrat
groups are columns. These are labelled by their decimal group
numbers with information of group sizes, or species by their name
if only leading species are shown. These numbers and the order of
the groups are similar as in hierarchic cluster trees produced by
as.hclust.twinspan
and
summary.twinspan
. Function also adds quadrat
classification tree on the top and species classification tree on
the left margin (see as.hclust.twinspan
). These trees
show either the levels of hierarchy or the heterogeneities of
divided groups depending on the argument height
.
Function returns invisibly the matrix of mean abundances used to produce the graph.
tabasco
and heatmap
for basic
functionality. The default colour scheme is based on
heat.colors
, but better shemes can be constructed
(viridis package provides clear schemes). The
dendrograms are based on as.hclust.twinspan
.
Function twintable
provides an alternative that
can list all quadrats and all species in textual format.
data(ahti)
tw <- twinspan(ahti)
image(tw)
im <- image(tw, height = "chi", leading = TRUE)
## image returns invisibly data
head(im)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.