View source: R/plot.fraction.R
plot.fraction | R Documentation |
Plots a convex hull or a star containing a specified percentage of the data. Used to plot clusters.
## S3 method for class 'fraction'
plot(x, add = TRUE, center = FALSE,
centerlabel = "Center", initial = FALSE, type = "ch", ...)
x |
An object with class |
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 ...) |
Plots a convex hull or a star containing a specified percentage of the data.
No value returned
Jose Luis Vicente Villardon
Fraction
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.