setLisacol | R Documentation |
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.
setLisacol()
getLisacol()
getOldcol()
setOldcol()
getStockcol()
setStockcol(cols)
getStockpch()
setStockpch(pchs)
getUnknowncol()
setUnknowncol(col)
getUnknownpch()
setUnknownpch(pch)
getStockbg()
setStockbg(bg)
getUnknownbg()
setUnknownbg(bg)
cols |
A vector of colour |
pchs |
A vector of |
col |
A colour |
pch |
A |
bg |
A colour |
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.
Laurent Gatto
## defaults for clusters
getStockcol()
getStockbg()
getStockpch()
## unknown features
getUnknowncol()
getUnknownbg()
getUnknownpch()
## an example
library(pRolocdata)
data(dunkley2006)
par(mfrow = c(2, 1))
plot2D(dunkley2006, fcol = "markers", main = 'Default colours')
setUnknowncol("black")
setUnknownbg("grey")
plot2D(dunkley2006, fcol = "markers",
main = 'setUnknowncol("black") and setUnknownbg("grey")')
getUnknowncol()
getUnknownbg()
setUnknowncol(NULL)
setUnknownbg(NULL)
getUnknowncol()
getStockcol()
getOldcol()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.