scale_categorical           package:ggplot           R Documentation

_S_c_a_l_e: _g_e_n_e_r_a_l _c_a_t_e_g_o_r_i_c_a_l

_D_e_s_c_r_i_p_t_i_o_n:

     Create a categorical scale for the specified variable

_U_s_a_g_e:

     scale_categorical(variable="x", expand=c(0,0), transform="as.numeric", ...)

_A_r_g_u_m_e_n_t_s:

variable: variable that this scale is for

  expand: 

transform: 

     ...: 

_D_e_t_a_i_l_s:

     A categorical scale is a simple mapping from the levels of the
     categorical factor to values of the aesthetic attribute. These
     mappings are created by the aesthetic mapping functions
     'map_colour', and 'map_linetype'. You will want to refer to those
     to see the possible options that can be used to control the
     mapping.

     You should not call this function yourself.  Instead use:

     *  'pscategorical'

     *  'sccolour'

     *  'sclinetype'

     *  'scshape'

        If you use a continuous variable with this scale, it will
        automatically be converted to a categorical variable using
        'chop_auto'.  If you want more control over the conversion you
        will want to use 'chop' yourself.  However, be careful to do
        all the chopping in one place, otherwise you may end up with
        different scales in different grobs.

        This categorical scale places evenly spaces the levels of the
        factor along the intergers.  If you want to change the order of
        the levels you will need to change the levels in the original
        factor.

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_E_x_a_m_p_l_e_s:

