scale_continuous           package:ggplot           R Documentation

_S_c_a_l_e: _g_e_n_e_r_a_l _c_o_n_t_i_n_u_o_u_s (_i_n_c_l. _t_r_a_n_s_f_o_r_m_a_t_i_o_n_s)

_D_e_s_c_r_i_p_t_i_o_n:

     Transform scale with a monotone function

_U_s_a_g_e:

     scale_continuous(variable="x", transform=trans_none, range=c(NA,NA), expand=c(0, 0), breaks=NULL, to=NULL)

_A_r_g_u_m_e_n_t_s:

variable: variable name

transform: vector of length two, first element the transforming
          function and the second its inverse

   range: range of values to display on guides

  expand: expansion factor for guides

  breaks: manually specified breaks to use

      to: if non-null, scale variable to this range after
          transformation

_D_e_t_a_i_l_s:

     You shouldn't call this function yourself.  Please use one of:

     *  'scsize'

     *  'scgradient'

     *  'pscontinuous'

        The continuous scale is the most complicated of the scale
        functions as it accepts so many options.

        Making pretty axis labels for transformed data isn't a trivial
        problem.  Here I use a simple heuristic, and compute pretty
        breaks on the transformed range and then back transform to the
        original scale.

        There are a few common transformation vectors defined:
        'trans_log10', 'trans_log2', 'trans_sqrt', 'trans_inverse'

_V_a_l_u_e:

     modified plot object

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_E_x_a_m_p_l_e_s:

