add_scale               package:ggplot               R Documentation

_A_d_d _s_c_a_l_e

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

     Add (one) scale to the plot

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

     add_scale(p = .PLOT, scale)

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

       p: plot object, if not specified will use current plot

   scale: scale to add, see 'scales' for possible options

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

     You shouldn't need to call this function yourself as all scale
     objects provide a convenient method to do so automatically.  These
     are the functions that start with sc.

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

     Hadley Wickham <h.wickham@gmail.com>

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

     p <- ggplot(movies, aesthetics=list(x=length, y=rating))
     add_scale(ggpoint(p), position_continuous('x', range=c(80,100)))

