viewport_default           package:ggplot2           R Documentation

_D_e_f_a_u_l_t _v_i_e_w_p_o_r_t_s

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

     Set up named viewports that the other components use.

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

     viewport_default(plot, guides, scales, coordinates)

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

    plot: plot object

  guides: guides grobs

  scales: scales grobs

coordinates: 

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

     This function sets up a \'\vpTree' in which all of the components
     of a plot will be placed.   This allows for a clean separation
     between the generation of plot objects, and their placement, and
     means none of the components have to know anything about the
     others.

     This function is responsible for the overall layout of the plot,
     ie where the panels, labels and axes go.  In future, I will add
     more viewport layout functions so that you can have the same
     layout as, e.g., the trellis default.

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

     Hadley Wickham <h.wickham@gmail.com>

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

