showLegend {GCDkit}R Documentation

Display legend

Description

Displays a graphical legend(s) with assignment of plotting symbols and colours used by majority of the diagrams.

Usage

showLegend(pch = labels$Symbol, col = labels$Colour, 
new.plot = TRUE)

Arguments

pch

numeric or character: plotting symbols.

col

numeric: code for their colour.

new.plot

logical: shall be opened a new plotting window for the legend?

Details

The internal variables 'leg.col' and 'leg.pch' are set to zero, if the current assignment is on the basis of 'groups'. Otherwise they contain the sequential number(s) of column(s) in the data frame 'labels' whose levels are to be used to build the legend(s). If both variables differ, two legends are created, for plotting symbols and colours separately. If both equal zero, the current grouping information is used.

Value

None.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

Symbols and colours by a single label can be assigned by functions assignSymbLab and
assignColLab respectively, symbols and colours by groups simultaneously by
assignSymbGroup. Uniform symbols are obtained by assign1symb, uniform colours by assign1col. Table of available plotting symbols is displayed by showSymbols and colours by showColours.

Examples

showLegend()

[Package GCDkit version 4.0 Index]