plot.FramedClust {OptCirClust}R Documentation

Plot Method for Framed Data Clustering

Description

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

Usage

## 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

N <- 100
X <- rchisq(N, 5)
K <- 3
frame.size <- 40

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

plot(result)

[Package OptCirClust version 0.0.4 Index]