print.MonoClust: Print Monothetic Clustering Results

Description Usage Arguments Value See Also Examples

View source: R/print.monoclust.R

Description

Render the MonoClust split tree in an easy to read format with important information such as terminal nodes, p-value (if possible), etc.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'MonoClust'
print(
  x,
  abbrev = c("no", "short", "abbreviate"),
  spaces = 2L,
  digits = getOption("digits"),
  ...
)

Arguments

x

MonoClust result object.

abbrev

Whether to print the abbreviated versions of variable names. Can be either "no" (default), "short", or "abbreviate". Short forms of them can also be used.

If "no", the labels recorded in x$labels are used.

If "short", variable names will be turned into "V1", "V2", ...

If "abbreviate", abbreviate() function will be used. Use the optional arguments for this function.

spaces

Spaces indent between 2 tree levels.

digits

Number of significant digits to print.

...

Optional arguments to abbreviate().

Value

A nicely displayed MonoClust split tree.

See Also

abbreviate()

Examples

1
2
3
4
library(cluster)
data(ruspini)
ruspini4sol <- MonoClust(ruspini, nclusters = 4)
print(ruspini4sol, digits = 2)

monoClust documentation built on Feb. 15, 2021, 5:07 p.m.