click.limits: Define mode limits by mouse clicks.

Description Usage Arguments Value Author(s) See Also Examples

Description

This function allows defining limits for robust end-members by mouse clicks on a combined plot output, showing a histogram and all end-members together. Clicks must be placed in the order lower limit, upper limit - for each end-member successively.

Usage

1
click.limits(data, n, classunits)

Arguments

data

List object, output of test.robustness.

n

Numeric scalar, number of target end-members.

classunits

Numeric vector, optional class units (e.g. micrometers or phi-units).

Value

Numeric matrix, limit classes. The first row contains lower limits, the second row upper limits for each end-member.

Author(s)

Michael Dietze, Elisabeth Dietze

See Also

test.robustness, robust.EM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## load example data set
data(example_X)

## Test robustness
q <- 4:7
l <- seq(from = 0, to = 0.1, by = 0.02)
TR <- test.robustness(X = X, q = q, l = l)

## define 2 limits by mouse clicks (uncomment to use).
# limits <- click.limits(data = TR, n = 2)
# limits  

coffeemuggler/EMMAgeo documentation built on June 4, 2019, 4:02 p.m.