scsize                package:ggplot                R Documentation

_S_c_a_l_e: _s_i_z_e

_D_e_s_c_r_i_p_t_i_o_n:

     Linearly map size to a variable.

_U_s_a_g_e:

     scsize(plot = .PLOT, to=c(0.8, 5))

_A_r_g_u_m_e_n_t_s:

    plot: plot to add scale to.

      to: size range in mm (numeric vector, length 2)

_D_e_t_a_i_l_s:

     The mapping between size and the original variable value is not
     linear, but square rooted.  This is because the human brain tends
     to percieve area rather than radius.

     You can manipulate the range of the result by modifying the 'to'
     argument.

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_E_x_a_m_p_l_e_s:

     p <- ggplot(mtcars, aes=list(x=mpg, y=hp))
     ggpoint(p)
     ggpoint(p, list(size=wt))
     scsize(ggpoint(p, list(size=wt)), c(1,10))
     scsize(ggpoint(p, list(size=sqrt(wt))), c(1,5))

