bpy.colors                package:sp                R Documentation

_b_l_u_e-_p_i_n_k-_y_e_l_l_o_w _c_o_l_o_r _s_c_h_e_m_e _t_h_a_t _p_r_i_n_t_s _w_e_l_l _o_n _b_l_a_c_k/_w_h_i_t_e _p_r_i_n_t_e_r_s

_D_e_s_c_r_i_p_t_i_o_n:

     Create a vector of `n' ``contiguous'' colors.

_U_s_a_g_e:

      bpy.colors(n = 100, cutoff.tails = 0.1, alpha = 1.0) 

_A_r_g_u_m_e_n_t_s:

       n: number of colors (>= 1) to be in the palette

cutoff.tails: tail fraction to be cut off on each side.  If 0, this
          palette runs from black to white; by cutting off the tails,
          it runs from blue to yellow, which looks nicer. 

   alpha: numeric; alpha transparency, 0 is fully transparent, 1 is
          opaque. 

_V_a_l_u_e:

     A character vector, `cv', of color names.  This can be used either
     to create a user-defined color palette for subsequent graphics by
     `palette(cv)', a `col=' specification in graphics functions or in
     `par'.

_N_o_t_e:

     This color map prints well on black-and-white printers.

_A_u_t_h_o_r(_s):

     unknown; R implementation Edzer J. Pebesma, e.pebesma@geo.uu.nl

_R_e_f_e_r_e_n_c_e_s:

     see  <URL:
     http://www.ihe.uni-karlsruhe.de/mitarbeiter/vonhagen/palette.en.ht
     ml>; gnuplot has this color map.

_S_e_e _A_l_s_o:

     rainbow, cm.colors

_E_x_a_m_p_l_e_s:

     bpy.colors(10)
     p <- expand.grid(x=1:30,y=1:30)
     p$z <- p$x + p$y
     coordinates(p) <- c("x", "y")
     gridded(p) <- TRUE
     image(p, col = bpy.colors(100), asp = 1)
     # require(lattice)
     # trellis.par.set("regions", list(col=bpy.colors())) # make this default pallette

