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, name="", to=c(0.8, 5))

_A_r_g_u_m_e_n_t_s:

    plot: plot to add scale to.

    name: name of the scale (used in the legend)

      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))

