maPalette package:marray R Documentation _M_i_c_r_o_a_r_r_a_y _c_o_l_o_r _p_a_l_e_t_t_e _D_e_s_c_r_i_p_t_i_o_n: This function returns a vector of color names corresponding to a range of colors specified in the arguments. _U_s_a_g_e: maPalette(low = "white", high = c("green", "red"), mid=NULL, k =50) _A_r_g_u_m_e_n_t_s: 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 'colors'), a hexadecimal string of the form '"#rrggbb"', or an integer 'i' meaning 'palette()[i]'. 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 'colors'), a hexadecimal string of the form '"#rrggbb"', or an integer 'i' meaning 'palette()[i]'. 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 'colors'), a hexadecimal string of the form '"#rrggbb"', or an integer 'i' meaning 'palette()[i]'. k: Number of colors in the palette. _V_a_l_u_e: 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'. _A_u_t_h_o_r(_s): Sandrine Dudoit, , Yee Hwa (Jean) Yang. _R_e_f_e_r_e_n_c_e_s: 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. _S_e_e _A_l_s_o: 'image', 'maColorBar', 'maImage', 'maImage.func'. _E_x_a_m_p_l_e_s: 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)