plot.fraction: Plots a fraction of the data as a cluster

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/plot.fraction.R

Description

Plots a convex hull or a star containing a specified percentage of the data. Used to plot clusters.

Usage

1
2
3
## S3 method for class 'fraction'
plot(x, add = TRUE, center = FALSE, 
centerlabel = "Center", initial = FALSE, type = "ch", ...)

Arguments

x

An object with class fraction obtained from Fraction.

add

Should the fraction be added to the current plot?

center

Should the center be plotted?

centerlabel

Label for the center.

initial

Should the initial data be plotted?

type

Type of plot. Can be: "ch"- Convex Hull or "st" - Star (Joining each point with the center)

...

Any other graphical parameter that can affects the plot (as color, etc ...)

Details

Plots a convex hull or a star containing a specified percentage of the data.

Value

No value returned

Author(s)

Jose Luis Vicente Villardon

See Also

Fraction

Examples

1
2
3
4
a=matrix(runif(50), 25,2)
a2=Fraction(a, 0.7)
plot(a2, add=FALSE, type="ch", initial=TRUE, center=TRUE, col="blue")
plot(a2, add=TRUE, type="st", col="red")

villardon/MultBiplotR documentation built on June 5, 2021, 8:55 a.m.