contourGroups {GCDkit} | R Documentation |
The functions outline the individual clusters of data (groups by default) on a binary plot. Implemented methods are the convex hull or contours. This can be useful for a quick appreciation of the data distribution, e.g. in classification diagrams.
contourGroups(clusters=groups,border=NULL,fill=FALSE,precision=50, ...) chullGroups(clusters=groups,border=NULL,fill=FALSE,...)
clusters |
grouping information for each of the samples. |
border |
outline colours. |
fill |
logical; should be the polygons filled by the border colour? |
precision |
a number indicating how tight the contours should be. |
... |
additional parameters to the functions contour and polygon, respectively. |
If not specified, the colours are selected as the most frequently occurring one defined among samples within each group.
For the function contourGroups, the shape of the contours drawn can be controlled using the parameter (precision). The higher it is, the smoother contours result.
None.
Vojtech Janousek, vojtech.janousek@geology.cz
data<-loadData("sazava.data",sep="\t") groupsByLabel("Intrusion") plotDiagram("PeceTaylor",FALSE,FALSE) chullGroups() chullGroups(fill=TRUE) plotDiagram("PeceTaylor",FALSE,FALSE) contourGroups()