contourGroups {GCDkit}R Documentation

Outline individual groups in a binary plot

Description

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.

Usage

    contourGroups(clusters=groups,border=NULL,fill=FALSE,precision=50, ...)

    chullGroups(clusters=groups,border=NULL,fill=FALSE,...)

Arguments

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.

Details

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.

contourGroups.png

Value

None.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

chull, contour, polygon

Examples

    data<-loadData("sazava.data",sep="\t")
    groupsByLabel("Intrusion")
    plotDiagram("PeceTaylor",FALSE,FALSE)
    chullGroups()
    
    chullGroups(fill=TRUE)
    
    plotDiagram("PeceTaylor",FALSE,FALSE)    
    contourGroups()

[Package GCDkit version 4.0 Index]