showLegend {GCDkit} | R Documentation |
Displays a graphical legend(s) with assignment of plotting symbols and colours used by majority of the diagrams.
showLegend(pch = labels$Symbol, col = labels$Colour, new.plot = TRUE)
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? |
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.
None.
Vojtech Janousek, vojtech.janousek@geology.cz
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
.
showLegend()