setLisacol {pRoloc} | R Documentation

## Manage default colours and point characters

### Description

These functions allow to get/set the colours and point character that are used when plotting organelle clusters and unknown features. These values are parametrised at the session level. Two palettes are available: the default palette (previously Lisa's colours) containing 30 colours and the old (original) palette, containing 13 colours.

### Usage

    setLisacol()

    getLisacol()

    getOldcol()

    setOldcol()

    getStockcol()

    setStockcol(cols)

    getStockpch()

    setStockpch(pchs)

    getUnknowncol()

    setUnknowncol(col)

    getUnknownpch()

    setUnknownpch(pch)

### Arguments

`cols` | A vector of colour `characters` or `NULL`, which sets the colours to the default values.
`pchs` | A vector of `numeric` or `NULL`, which sets the point characters to the default values.
`col` | A colour `character` or `NULL`, which sets the colour to `#E7E7E7` (`grey91`), the default colour for unknown features.
`pch` | A `numeric` vector of length 1 or `NULL`, which sets the point character to 21, the default.

### Value

The `set` functions set (and invisibly returns) colours. The `get` functions returns a `character` vector of colours. For the `pch` functions, `numeric`s rather than `character`s.

### Author(s)

Laurent Gatto

### Examples

    ## defaults for clusters
    getStockcol()
    getStockpch()
    ## unknown features
    getUnknownpch()
    getUnknowncol()
    ## an example
    library(pRolocdata)
    data(dunkley2006)
    par(mfrow = c(2, 1))
    plot2D(dunkley2006, fcol = "markers", main = 'Default colours')
    setUnknowncol("black")
    plot2D(dunkley2006, fcol = "markers", main = 'setUnknowncol("black")')
    getUnknowncol()
    setUnknowncol(NULL)
    getUnknowncol()
    getStockcol()
    getOldcol()

[Package pRoloc version 1.27.6 Index]