powered by
Generate colors for multi-color marker expression labeling in a single plot
ExprColors( exprs, base = exp(1), scale = 1, cutoff = 0, pow = NULL, col = ClusterPalette(dim(exprs)[2], alpha = alpha), nocolor = grDevices::rgb(0.75, 0.75, 0.75, alpha/2), alpha = 0.5 )
Matrix-like object with marker expressions (extract it manually from your data)
Base(s) and scale(s) for softmax (convertible to numeric vectors of size 1+ncol(exprs))
1+ncol(exprs)
Gray level (expressed in sigmas of the sample distribution)
Obsolete, now renamed to scale.
scale
Colors to use, defaults to colors taken from 'ClusterPalette'
The color to use for sub-gray-level expression, default gray.
Default alpha value.
d <- cbind(rnorm(1e5), rexp(1e5)) EmbedSOM::PlotEmbed(d, col=EmbedSOM::ExprColors(d, pow=2))
Run the code above in your browser using DataLab