sccolour               package:ggplot               R Documentation

_S_c_a_l_e: _c_a_t_e_g_o_r_i_c_a_l _c_o_l_o_u_r

_D_e_s_c_r_i_p_t_i_o_n:

     Create a scale for categorical colours.

_U_s_a_g_e:

     sccolour(plot = .PLOT, name="", h=c(0,360), l=65, c=100, alpha=1)

_A_r_g_u_m_e_n_t_s:

    plot: plot to add scale to

    name: name of the scale (used in the legend)

       h: range of hues to use

       l: luminance value

       c: chroma value

   alpha: alpha value

_D_e_t_a_i_l_s:

     Continuous variables will automatically be converted to
     categorical using 'chop_auto'.  You may want to use 'chop' to
     convert the values yourself for finer control.

     This scale is automatically added when you have colour in your
     list of aesthetics.  For finer control, you will need to set the
     scale yourself.  See the example for some ideas.

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_S_e_e _A_l_s_o:

     'scale_categorical', 'map_colour'

_E_x_a_m_p_l_e_s:

     p <- ggplot(movies, aes=list(x=mpaa, y=rating))
     ggjitter(p, list(colour=rating))
     ggjitter(p, list(colour=length))
     ggjitter(p, list(colour=chop(length)))
     ggjitter(p, list(colour=chop(length,3)))
     sccolour(ggjitter(p, list(colour=chop(length,3))), 2)

