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'.

