ID {GCDkit}R Documentation

Sample identification

Description

Identification/labelling of individual data points on plots.

Usage

ID(x, y, labs = getOption("gcd.ident"), offset = 0.4, 
col = "gray30", cex = 1)

Arguments

x, y

vector with x-y coordinates of the data points

labs

text to label individual data points, see details

offset

distance (in char widths) between label and identified points.

col

colour of the text

cex

its size

Details

In GCDkit, the option 'ident' determines whether the user wishes to identify data points on binary and ternary plots. The default is zero, which means no identification.

If 'ident' differs from zero, internal function 'ID' can be invoked. Its parameter labs is either a single number, or character vector.

In the former case, the variable 'labs' contains either 1 (identification by sample name), or the sequential number of the column in the data frame 'labels' increased by one (identification by a user- defined label).

Alternatively, a character vector labs can be used to specify the text directly.

Value

None.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

identify gcdOptions options

Examples

    getOption("ident")        # yields the current value of the given option

[Package GCDkit version 4.1 Index]