assignSymbLett {GCDkit}R Documentation

Symbols by label - initial letters

Description

Assigns plotting symbols to initial letters of the respective levels of the chosen label.

Usage

assignSymbLett(lab = NULL, display.legend = FALSE)

Arguments

lab

specification of the variable to be used for symbols assignment. See Details.

display.legend

logical; should be the legend displayed? Batch mode only.

Details

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.

Value

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.

Author(s)

Vojtěch Janoušek, vojtech.janousek@geology.cz

See Also

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.

Examples

    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)

[Package GCDkit version 6.1 Index]