plotWithCircles {GCDkit}R Documentation

xyz plotWithCircles

Description

Plots a background binary diagram of two specified variables and the whole dataset or its selection. The size and colours of the plotted circles correspond to the third.

Usage

plotWithCircles(xaxis = "", yaxis = "", zaxis = "",
    colour = "heat.colors", scaling.factor = 1, 
    bins = NULL, ident = getOption("gcd.ident"), alpha="FF")

Arguments

xaxis

Name of the data column to be used as x axis.

yaxis

Name of the data column to be used as y axis.

zaxis

Name of the data column to determine the size/colour of the circles.

colour

colour scheme for the circles.

scaling.factor

a factor determine the size of the circles.

bins

number of intervals for the legend.

ident

Logical: should be the individual samples identified?

alpha

hexadecimal number indicating the alpha channel (transparency).

Details

This function produces a custom binary plot, with the size and colours of the plotted circles corresponding to a third variable.

plotWithCircles.png

If no parameters 'xlab', 'ylab' and 'zlab' are given, the user is prompted to specify them.

The variables are selected using the function 'selectColumnLabel.

In the specification of the apices can be used also arithmetic expressions, see calcCore for the correct syntax.

The samples to be plotted can be selected based on combination of three searching mechanisms (by sample name/label, range or a Boolean condition) - see selectSubset for details.

The legal colour schemes are: '"grays","reds","blues","greens","cyans","violets","yellows" '"cm.colors","heat.colors","terrain.colors","topo.colors","rainbow", "jet.colors"'.

Optionally, the colours can be made semitransparent, if hexadecimal parameter 'alpha' is specified for the alpha channel (transparency).

Value

None.

Warning

This function IS NOT Figaro-compatible.

Author(s)

Vojtěch Janoušek, vojtech.janousek@geology.cz

& Vojtěch Erban, erban@sopky.cz

See Also

diagramWithCircles

Examples

    data(blatna)
    accessVar("blatna")
    
    plotWithCircles("SiO2","Na2O+K2O","MgO+FeOt",colour="rainbow")

    plotWithCircles("SiO2","MgO","K2O",colour="grays",scaling.factor=0.5,ident=TRUE)

[Package GCDkit version 6.1 Index]