Learn R Programming

disto (version 0.2.0)

plot.disto: Plot a disto object

Description

Various plotting options for subsets of disto objects

Usage

# S3 method for disto
plot(x, ...)

Arguments

x

object of class disto

...

Additional arguments. See details.

Value

ggplot object

Details

Among the additional arguments,

  • 'type: is mandatory. Currently, these options are supported: heatmap, dendrogram.

  • sampleSize: A random sample of indexes is drawn from the distance object underlyting the disto mapping. Default value of sampleSize is set to 100.

  • seed seed for random sample. Default is 100.

Examples

Run this code
# NOT RUN {
temp <- stats::dist(iris[,1:4])
dio  <- disto(objectname = "temp")
plot(dio, type = "heatmap")
plot(dio, type = "dendrogram")
# }

Run the code above in your browser using DataLab