plot.FramedClust: Plot Method for Framed Data Clustering

Description Usage Arguments Value Examples

View source: R/plot-FramedClust.R

Description

The plot method for framed data clustering result object. It visualizes clusters on the input data that are within a best frame.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'FramedClust'
plot(
  x,
  xlab = NULL,
  ylab = NULL,
  main = NULL,
  sub = NULL,
  col.clusters = c("blue", "red3", "green3", "orange", "purple", "brown"),
  ...
)

Arguments

x

an object of class FramedClust as returned by FramedClust

xlab

a character string. The x-axis label for the plot. Default is NULL.

ylab

a character string. The y-axis label for the plot. Default is NULL.

main

a character string. The title for the plot. Default is NULL.

sub

a character string. The subtitle for the plot. Default is NULL.

col.clusters

a vector of colors, defined either by integers or by color names. If the length is shorter than the number of clusters, the colors will be reused. By default the blue, red3, green3, orange, purple, brown colors are used in the plot.

...

other arguments associated with the plot function

Value

An object of class "FramedClust", identical to the input x

Examples

1
2
3
4
5
6
7
8
N <- 100
X <- rchisq(N, 5)
K <- 3
frame.size <- 40

result <- FramedClust(X, K, frame.size)

plot(result)

OptCirClust documentation built on July 28, 2021, 9:06 a.m.