Learn R Programming

fdars (version 0.3.3)

plot.group.distance: Plot method for group.distance

Description

Plot method for group.distance

Usage

# S3 method for group.distance
plot(x, type = c("heatmap", "dendrogram"), which = NULL, ...)

Value

A ggplot object (for heatmap) or NULL (for dendrogram, uses base graphics).

Arguments

x

An object of class 'group.distance'.

type

Plot type: "heatmap" or "dendrogram".

which

Which distance matrix to plot. If NULL (default), uses the first available matrix from the group.distance object.

...

Additional arguments.