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:

