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:

