dataViewport              package:grid              R Documentation

_C_r_e_a_t_e _a _V_i_e_w_p_o_r_t _w_i_t_h _S_c_a_l_e_s _b_a_s_e_d _o_n _D_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

     This is a convenience function for producing a viewport with x-
     and/or y-scales based on numeric values passed to the function.

_U_s_a_g_e:

     dataViewport(xData = NULL, yData = NULL, xscale = NULL, yscale = NULL,
                  extension = 0.05, ...)

_A_r_g_u_m_e_n_t_s:

   xData: A numeric vector of data. 

   yData: A numeric vector of data. 

  xscale: A numeric vector (length 2). 

  yscale: A numeric vector (length 2). 

extension: A numeric. 

     ...: All other arguments will be passed to a call to the
          'viewport()' function. 

_D_e_t_a_i_l_s:

     If 'xscale' is not specified then the values in 'x' are used to
     generate an x-scale based on the range of 'x', extended by the
     proportion specified in 'extension'.  Similarly for the y-scale.

_V_a_l_u_e:

     A grid viewport object.

_A_u_t_h_o_r(_s):

     Paul Murrell

_S_e_e _A_l_s_o:

     'viewport' and 'plotViewport'.

