setTransparency {GCDkit}R Documentation

Setting transparency of plotting symbols

Description

Sets transparency of plotting colours for selected samples.

Usage

    setTransparency(which.samples=NULL,transp=NULL,alpha=NULL,GUI=FALSE)

Arguments

which.samples

list of samples; if NULL a dialogue is displayed

transp

numeric; transparency to be set

alpha

character; alpha value to be set (opacity)

GUI

logical; is the function called form within GUI?

Details

The transparency value has to fall between 1 (completely transparent) to 0 (opaque).

Alternatively, the so-called alpha channel can be specified, which can attain any hexadecimal number between 0 (completely transparent) to ff (opaque).

if GUI = TRUE, the samples can be selected based on combination of three searching mechanisms (by sample name/label, range or a Boolean condition) - see selectSamples for details.

Value

Assigns 'labels$Colour'.

Warning

As a side product, plotting colours are converted to hexadecimal values, which are not easy to translate back to symbolic names.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

Colours by a single variable can be assigned by assignColLab, symbols and colours by groups simultaneously by assignSymbGroup. Uniform colours are obtained by assign1col. Table of available plotting colours is obtained by showColours.

Examples

    setTransparency(transp=0)
    setTransparency(transp=0.5)
    setTransparency(which.samples=c("Sa-1","Sa-2","Sa-3"),transp=0.5)
    setTransparency(which.samples=c("Sa-1","Sa-2","Sa-3"),alpha="6a")

[Package GCDkit version 4.0 Index]