scshape                package:ggplot                R Documentation

_S_c_a_l_e: _s_h_a_p_e

_D_e_s_c_r_i_p_t_i_o_n:

     Create a scale for categorical shapes.

_U_s_a_g_e:

     scshape(plot = .PLOT, solid=TRUE)

_A_r_g_u_m_e_n_t_s:

    plot: plot to add scale to

   solid: should points be solid or hollow?

_D_e_t_a_i_l_s:

     This scale is automatically added when you use the shape aesthetic
     mapping.  By using this scale you can explicitly decide whether
     the points used should be hollow or solid.

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_S_e_e _A_l_s_o:

     'scale_categorical', 'map_shape'

_E_x_a_m_p_l_e_s:

     p <- ggplot(mtcars, aes=list(x=mpg, y=wt, shape=cyl))
     ggpoint(p)
     ggpoint(scshape(p, FALSE))

