misclassified | R Documentation |
twinspan
bases its quadrat classification primarily
on ordination axis. In some cases this is in conflict with the
classification derived from indicator pseudospecies. This function
identifies these cases.
misclassified(x, level, verbose = TRUE, binname = FALSE)
x |
|
level |
Only consider misclassification down to this level. |
verbose |
If |
binname |
Use binary labels instead of decimal numbers for classes and divergent division in verbose object. |
The function compares the final twinspan
classification (from cut.twinspan
) and the
classification predicted from indicator pseudospecies (from
predict.twinspan
). If these two differ, the quadrat
is “misclassified”. With verbose=FALSE
, the function
returns a logical vector that is TRUE
for misclassified
quadrats. In default, it also returns the names, twinspan classes
and predicted classes of misclassified quadrats, and the division
where the misclassification occurred and classifications
diverged. The divisions and their numbers can be seen in
summary.twinspan
and plot.twinspan
.
If verbose=TRUE
, the function returns an object of class
"misclassified"
with following elements.
Index of misclassified quadrats.
Labels (names) of quadrats.
Final classification from twinspan
.
Final classification from predict.twinspan
.
The division where the misclassification occurred.
With verbose=FALSE
, the function returns a logical vector
that is TRUE
for misclassified quadrats.
The basic functions are cut.twinspan
and
predict.twinspan
. You can see the division
numbers with summary.twinspan
(with indicator
pseudospecies) and in plot.twinspan
.
data(ahti)
tw <- twinspan(ahti)
misclassified(tw)
## see the ID numbers of divisions
plot(tw)
## only look at misclassifications at first two levels
misclassified(tw, level = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.