hexVP-class              package:hexbin              R Documentation

_F_o_r_m_a_l _c_l_a_s_s "_h_e_x_V_P" _o_f _a _H_e_x_a_g_o_n _V_i_e_w_p_o_r_t

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

     Hexagon Viewports are "value-added" grid viewports (see
     'viewport') where the extra slots contain scaling and "embedding"
     information. A hexViewport is created my taking the available area
     in the cuurent viewport on the graphics device and maximizing the
     amount of area with a fied aspect ratio. The default when the
     shape parameter is 1, is a 1:1 aspect ratio in terms of the size
     of the viewport, not the scale of the x and y axis. The plotting
     area is centered within the existing margins and the maximum size
     determined. Extra area is then allocated to the margins. This
     viewport is replicated twice, once with clipping set to "on" and
     once with clipping "off". This feature can be used for toggling
     clipping on and off while editing the plot.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects are typically created by calls to 'hexViewport()' or by
     low level calls of the form 'new("hexVP", ...)'.

_S_l_o_t_s:

     '_h_e_x_V_p._o_f_f': Object of class '"viewport"' with clipping set to
          off, see 'viewport'.

     '_h_e_x_V_p._o_f_f': Object of class '"viewport"', with the same
          dimensions and parameters as hexVp.off, but with clipping set
          to on, see 'viewport'.    

     '_m_a_r': 'unit' vector of four margins (typically in '"lines"').

     '_f_i_g': 'unit' vector of two figure sizes (typically in '"npc"').

     '_p_l_t': 'unit' vector of two figure sizes (typically in '"npc"').

     '_x_s_c_a_l_e': numeric of length two specifying x-range.

     '_y_s_c_a_l_e': numeric of length two specifying y-range.

_M_e_t_h_o_d_s:

     These are methods accessing the slots of corresponding name.

     _g_e_t_F_i_g 'signature(hvp = "hexVP")': ... 

     _g_e_t_M_a_r_g_i_n_s 'signature(hvp = "hexVP")': ... 

     _g_e_t_P_l_t 'signature(hvp = "hexVP")': ... 

     _g_e_t_X_s_c_a_l_e 'signature(hvp = "hexVP")': ... 

     _g_e_t_Y_s_c_a_l_e 'signature(hvp = "hexVP")': ... 

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

     Nicholas Lewin-Koh kohnicho@comp.nus.edu.sg.

_S_e_e _A_l_s_o:

     The constructor function 'hexViewport'. 'hexbin', and its S4
     plotting method, 'gplot.hexbin'.

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

      example(hexViewport, echo=FALSE)
      ## continued:
      str(P$plot.vp)

