grid.move.to              package:grid              R Documentation

_M_o_v_e _t_o _a _S_p_e_c_i_f_i_e_d _P_o_s_i_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Grid has the notion of a current location.  This function sets
     that location.

_U_s_a_g_e:

     grid.move.to(x=0, y=0, default.units="npc", draw=TRUE, vp=NULL)
     grid.line.to(x=1, y=1, default.units="npc", draw=TRUE, gp=gpar(), vp=NULL)

_A_r_g_u_m_e_n_t_s:

       x: A numeric value or a unit object specifying an x-value.

       y: A numeric value or a unit object specifying a y-value.

default.units: A string indicating the default units to use if 'x' or
          'y' are only given as numeric values.

    draw: A logical value indicating whether graphics output should be
          produced.

      gp: An object of class 'gpar', typically the output from a call
          to the function 'gpar'.  This is basically a list of
          graphical parameter settings.

      vp: A Grid viewport object (or NULL).

_A_u_t_h_o_r(_s):

     Paul Murrell

_S_e_e _A_l_s_o:

     Grid, 'viewport'

_E_x_a_m_p_l_e_s:

     grid.newpage()
     grid.move.to(0.5, 0.5)
     grid.line.to(1, 1)
     grid.line.to(0.5, 0)
     push.viewport(viewport(x=0, y=0, w=0.25, h=0.25, just=c("left", "bottom")))
     grid.rect()
     grid.grill()
     grid.line.to(0.5, 0.5)
     pop.viewport()

