plotDistances: Visualize results of 'link{findThreshold}'

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/findThreshold.R

Description

The functions plotDistances and plotMutinfo are used to visualize the distance threshold calculated by findThreshold in the context of pairwise distances among objects in the reference set.

Usage

1
2
3
4
5
plotDistances(distances, D = NA, interval = NA,
              ylab = "distances", ...)

plotMutinfo(breaks, D = NA, interval = NA,
            xlab = "distance", ylab = "mutual information", ...)

Arguments

distances

The $distances element of the output value of findThreshold

breaks

The $breaks element of the output value of findThreshold

D

The distance threshold

interval

The range of values over which candidiate values of PMMI are evaluated.

xlab

Label the x axis of the plot.

ylab

Label the y axis of the plot.

...

Additional arguments are passed to bwplot (plotDistances) or xyplot

(plotMutinfo)

Details

plotDistances produces a box-and-whisker plot contrasting within- and between-group distances. plotMutinfo produces a plot of cutpoints vs mutual information scores.

Value

Returns a lattice grid object.

Author(s)

Noah Hoffman

See Also

findThreshold

Examples

1
2
3
4
5
6
data(iris)
dmat <- as.matrix(dist(iris[,1:4], method="euclidean"))
groups <- iris$Species
thresh <- findThreshold(dmat, groups)
do.call(plotDistances, thresh)
do.call(plotMutinfo, thresh)

clst documentation built on Nov. 8, 2020, 5:41 p.m.