smoothColors             package:plotrix             R Documentation

_B_u_i_l_d _a _v_e_c_t_o_r _o_f _c_o_l_o_r _v_a_l_u_e_s.

_D_e_s_c_r_i_p_t_i_o_n:

     'smoothColors' calculates a sequence of colors. If two color names
      in the arguments are separated by a number, that number of
     interpolated colors will be inserted between the two color
     endpoints. Any number of color names and integers may be passed,
     but the last argument must be a color name. If more than one
     integer appears between two color names, only the first will be
     used in the interpolation and the others will be ignored.

_U_s_a_g_e:

      smoothColors(...,alpha=NA)

_A_r_g_u_m_e_n_t_s:

     ...: an arbitrary sequence of color names and integers beginning
          and ending with a color name.

   alpha: optional 'alpha' (transparency) value.

_V_a_l_u_e:

     A vector of hexadecimal color values as used by 'col'.

_A_u_t_h_o_r(_s):

     Barry Rowlingson

_S_e_e _A_l_s_o:

     'color.gradient','rgb'

_E_x_a_m_p_l_e_s:

      plot(1:10,main="Test opaque colors",type="n",axes=FALSE)
      box()
      rect(1:7,1:7,3:9,3:9,col=smoothColors("red",2,"green",2,"blue"))

