spiderByGroupFields {GCDkit}R Documentation

Spider plot(s) - by group fields

Description

Plots a series of spiderplots, for each group one, outlining the overall distribution as a field.

Usage

spiderByGroupFields(rock = WR, norm = NULL, 
bw = FALSE, fill = FALSE, ymin = 0, ymax = 0,
xrotate = FALSE, offset = TRUE, centered = FALSE)

Arguments

rock

a numeric matrix; the whole-rock data from which will be filtered out those to be normalized.

norm

a character string specifying the model.

bw

logical; should be the plot black and white?

fill

logical; should be the fields filled by solid colour (and not hatched)?

ymin, ymax

y range of the diagram.

xrotate

logical; shall be the element names on x axis rotated?

offset

logical; shall be the names for odd and even elements shifted relative to each other?

centered

logical; shall be the element names on x axis plotted in between tick marks?

Details

The parameter 'norm' is an optional search pattern to query the available normalizing model names. It can contain a substring or even a regular expression. For choosing the correct normalization values serves the auxiliary function selectNorm.The function fails if no matches are found or the search is ambiguous. See selectNorm for details.

A series of spiderplots is plotted, for each group one, in which the whole variation range is outlined as filled/cross-hatched fields.

Value

None.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz; Vojtech Erban, vojtech.erban@geology.cz, contributed the algorithm hatching closed polygons

See Also

For the syntax of the setup file with normalizing values and adding new normalization schemes see selectNorm. This function is based on spider.

Examples

## Not run: 
    data<-loadData("sazava.data",sep="\t")
    groupsByLabel("Intrusion")
    spiderByGroupFields(norm="Boynton",ymin=1,ymax=1000)
    
    spiderByGroupFields(norm="Boynton",bw=TRUE,ymin=1,ymax=1000,xrotate=TRUE,offset=FALSE)
    
    spiderByGroupFields(norm="Boynton",fill=TRUE,ymin=1,ymax=1000)

## End(Not run)

[Package GCDkit version 4.1 Index]