prettyplot              package:ggplot              R Documentation

_P_r_e_t_t_y _p_l_o_t

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

     Build a plot with all the usual bits and pieces.

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

     prettyplot(plot, title, xlabel, ylabel, legend=NULL)

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

    plot: plot

   title: title (character vector)

  xlabel: x axis label (character vector)

  ylabel: y axis label (character vector)

  legend: legend grobs (list of grobs)

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

     As well as the plotting area, a plot need:

     *  main title

     *  x and y axis labels

     *  space for legends (currently on the right hand side)

        This function sets up the appropriate viewports and packs the
        various components in.  The viewport is set up so that each
        component will only take up the amount of space that it
        requires.

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

     Hadley Wickham <h.wickham@gmail.com>

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

