View source: R/privateFunctions.R
Makes a colour for each row of the data by embedding it in 4 dimensions, "r,g,b,alpha"
1 2 | rgbDistCols(mydata, colorder = c(1, 2, 3, 4), colmax = 0.8,
alphamin = 0.5)
|
mydata |
data for which colours are required; each row is an observation |
colorder |
Mapping of MDS directions to RGBalpha channels;allows relabelling of colour directions and changing polarity (if -ve) |
colmax |
the maximum a colour can be (for preventing white) |
alphamin |
the minimum the alpha can be (for preventing colours from being too faded) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.