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)

