Learn R Programming

pRoloc (version 1.12.4)

addLegend: Adds a legend

Description

Adds a legend to a plot2D figure.

Usage

addLegend(object, fcol = "markers", where = c("other", "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right", "center"), col, bty = "n", ...)

Arguments

object
An instance of class MSnSet
fcol
Feature meta-data label (fData column name) defining the groups to be differentiated using different colours. Default is markers.
where
One of "other", "bottomleft", "bottomright", "topleft" or "topright" defining the location of the legend. "other" opens a new graphics device, while the other locations are passed to legend.
col
A character defining point colours.
bty
Box type, as in legend. Default is set to "n".
...
Additional parameters passed to legend.

Value

Invisibly returns NULL

Details

The function has been updated in version 1.3.6 to recycle the default colours when more organelle classes are provided. See plot2D for details.