coloring | R Documentation |
This functions mapped data values from a variable in the virtual cohort to color codes.
coloring(logins, func, symbol, what,
continuous_scale = rep(TRUE, length(what)),
nbreaks = 2,
colors = c('orange', 'blue'),
...)
logins |
Login information of data repositories, where dsMOprimal is installed. |
func |
Definition of a function for preparation of raw data matrices. |
symbol |
The symbol provided when calling the function |
what |
The variable names used to map to color codes, in form of 'data.frame$variable' or c('data.frame$variable1', ...). |
continuous_scale |
A logical value indicating whether the coloring mapping is continuous. Default, TRUE. |
nbreaks |
An integer indicating the number of intervals into which x is to be cut, less than 1/10 of number of samples, when x is the coloring scale is continuous. |
colors |
A vector of colors to interpolate, must be a valid argument to
col2rgb(). Default, |
... |
arguments to pass to |
A vector of The color codes for all samples
data(logindata)
data(procFunc)
resColors <- coloring(logins=logindata[1:2,],
func=procFunc$SingleOmics,
symbol='rawDataX',
what='rawDataX_discrete$PM_BMI_CONTINUOUS',
continuous_scale=TRUE, nbreaks=4)
resColors <- coloring(logins=logindata[1:2,],
func=procFunc$SingleOmics,
symbol='rawDataX',
what='rawDataX_discrete$PM_BMI_CATEGORICAL',
continuous_scale=FALSE, levels=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.