assignSymbLett {GCDkit} | R Documentation |
Assigns plotting symbols to initial letters of the respective levels of the chosen label.
assignSymbLett(lab = NULL, display.legend = FALSE)
lab |
specification of the variable to be used for symbols assignment. See Details. |
display.legend |
logical; should be the legend displayed? Batch mode only. |
If called from in interactive mode (from GUI), the variable (sample names or label) can be
selected using the function 'selectColumnLabel
'.
In batch mode, 'lab
' can be an integer (a sequence number of the
column in the 'labels
').
Alternatively, it can contain the full name of a column in 'labels
'.
See examples.
Sets 'leg.pch
' to a sequence number of column in 'labels
' that is
to be used to build the legend; 'labels$Symbol
' contains the plotting
symbols, which correspond to initial letters for the levels of the specified label.
Vojtěch Janoušek, vojtech.janousek@geology.cz
To display the current legend use showLegend
.
Symbols by a single label can be assigned by assignSymbLab
,
colours by assignColLab
, symbols and colours by groups simultaneously
by assignSymbGroup
. Uniform colours or symbols are achieved by
assign1symb
and assign1col
. Table of available plotting
symbols is displayed by showSymbols
and colours by showColours
.
data(sazava) accessVar("sazava") ## Not run: assignSymbLett() # Interactive mode assignSymbLett(2,display.legend=TRUE) # Second column in labels assignSymbLett("Locality",display.legend=TRUE) # The same (here Locality)