ribbonLegend            package:RGraphics            R Documentation

_C_r_e_a_t_e _a _R_i_b_b_o_n _L_e_g_e_n_d

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

     Creates a ribbon legend; a vertical bar broken into several
     colored cells, with an axis on the right-hand side.

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

     ribbonLegend(nlevels=NULL, breaks=NULL, cols, 
                  scale=range(breaks), 
                  margin=unit(0.5, "lines"), 
                  gp=NULL, vp=NULL, name=NULL) 

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

nlevels, breaks: Number of levels to be represented in the legend,
          specifed either as a number of (equal-sized) levels, or the
          break points between levels.

    cols: The colors to be used for each level.

   scale: The range of the scale on the legend.

  margin: Space around the edges of the legend.

    name: A character name for the grob.

      gp: A 'gpar' object containing graphical parameter settings or
          'NULL'.

      vp: A viewport or 'NULL'.

