setTransparency {GCDkit} | R Documentation |
Sets transparency of plotting colours for selected samples.
setTransparency(which.samples=NULL,transp=NULL,alpha=NULL,GUI=FALSE)
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? |
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.
Assigns 'labels$Colour
'.
As a side product, plotting colours are converted to hexadecimal values, which are not easy to translate back to symbolic names.
Vojtech Janousek, vojtech.janousek@geology.cz
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
.
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")