Description Usage Arguments Value Author(s) References See Also Examples
This function returns a vector of color names corresponding to a range of colors specified in the arguments.
1 |
low |
Color for the lower end of the color palette, specified using any of the three kinds of R colors, i.e., either a color name (an element of |
high |
Color for the upper end of the color palette, specified
using any of the three kinds of R colors, i.e., either a color name
(an element of |
mid |
Color for the middle portion of the color palette, specified using any of the three kinds of R colors, i.e., either a color name (an element of |
k |
Number of colors in the palette. |
A "character" vector of color names. This can be used to create a user-defined color palette for subsequent graphics by palette
, in a col=
specification in graphics functions, or in par
.
Sandrine Dudoit, http://www.stat.berkeley.edu/~sandrine, Yee Hwa (Jean) Yang.
S. Dudoit and Y. H. Yang. (2002). Bioconductor R packages for exploratory analysis and normalization of cDNA microarray data. In G. Parmigiani, E. S. Garrett, R. A. Irizarry and S. L. Zeger, editors, The Analysis of Gene Expression Data: Methods and Software, Springer, New York.
image
, maColorBar
, maImage
, maImage.func
.
1 2 3 4 5 6 7 8 9 | par(mfrow=c(1,4))
pal <- maPalette(low="red", high="green")
maColorBar(seq(-2,2, 0.2), col=pal, horizontal=FALSE, k=21)
pal <- maPalette(low="red", high="green", mid="yellow")
maColorBar(seq(-2,2, 0.2), col=pal, horizontal=FALSE, k=21)
pal <- maPalette()
maColorBar(seq(-2,2, 0.2), col=pal, horizontal=FALSE, k=21)
pal <- maPalette(low="purple", high="purple",mid="white")
maColorBar(seq(-2,2, 0.2), col=pal, horizontal=FALSE, k=21)
|
Loading required package: limma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.