Function to create viewports for multiple supra-hexagonal grids

Description

visVp is supposed to create viewports, which describe rectangular regions on a graphics device and define a number of coordinate systems for each of supra-hexagonal grids.

Usage

visVp(height = 7, xdim = 1, ydim = 1, colNum = 1, rowNum = 1, gp = grid::gpar(), 
  newpage = TRUE)

Arguments

height
a numeric value specifying the height of device
xdim
an integer specifying x-dimension of the grid
ydim
an integer specifying y-dimension of the grid
colNum
an integer specifying the number of columns
rowNum
an integer specifying the number of rows
gp
an object of class gpar, typically the output from a call to the function gpar (i.e., a list of graphical parameter settings)
newpage
logical to indicate whether to open a new page. By default, it sets to true for opening a new page

Value

vpnamesan R object of "viewport" class

Note

none

Examples

# 1) create 5x5 viewports vpnames <- visVp(colNum=5, rowNum=5) # 2) look at names of these viewports vpnames
[1] "R0C1" "R0C2" "R0C3" "R0C4" "R0C5" [6] "R4C1" "R4C2" "R4C3" "R4C4" "R3C1" [11] "R3C2" "R3C3" "R3C4" "R2C1" "R2C2" [16] "R2C3" "R2C4" "R1C1" "R1C2" "R1C3" [21] "R1C4" "colorbarR1"

Source code

visVp.r

Source man

visVp.Rd visVp.pdf

See also

visHexMulComp, visCompReorder