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

