hexVP-class {hexbin}R Documentation

Formal class "hexVP" of a Hexagon Viewport

Description

Hexagon Viewports are “value-added” grid viewports (see viewport) where the extra slots contain scaling and “embedding” information.

Objects from the Class

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

Slots

hexVp:
Object of class "viewport", see viewport.
mar:
unit vector of four margins (typically in "lines").
fig:
unit vector of two figure sizes (typically in "npc").
plt:
unit vector of two figure sizes (typically in "npc").
xscale:
numeric of length two specifying x-scaling.
yscale:
numeric of length two specifying y-scaling.

Methods

These are methods accessing the slots of corresponding name.

getFig
signature(hvp = "hexVP"): ...
getMargins
signature(hvp = "hexVP"): ...
getPlt
signature(hvp = "hexVP"): ...
getXscale
signature(hvp = "hexVP"): ...
getYscale
signature(hvp = "hexVP"): ...

Author(s)

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

See Also

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

Examples

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

[Package hexbin version 1.2-1 Index]