plotLattice: plotLattice

Description Usage Arguments Details Value Author(s)

View source: R/plotLattice.R

Description

Plot a Halton lattice

Usage

1
plotLattice(latt, indices = NULL, J = NULL, bases = c(2, 3), box = NULL, ...)

Arguments

latt

A list containing the Halton boxes in the lattice. One item in the list for each Halton box. Each list item is a 2 X 2 matrix where first row is min and max of dimension 1, second row is min and max of dimension 2.

indices

The halton indices of all boxes. length(latt) must equal length(indices) and indices[i] is the index of box latt[[i]]. If missing or NULL, indices are not printed.

J

A 2X1 vector of base powers. J[1] is for horizontal, J[2] for vertical dimension. J determines the size and shape of the smallest Halton boxes. There are bases[1]^J[1] vertical columns of Halton boxes over x's bounding box, and bases[2]^J[2] horizontal rows of Halton boxes over the bounding box, for a total of prod(bases^J) boxes. The dimension of each box is c(dx,dy)/ (bases^J), where c(dx,dy) are the horizontal and vertical extents of x's bounding box. If J=NULL (the default), J is chosen so that Halton boxes are as square as possible.

bases

2X1 vector of Halton bases. These must be co-prime.

box

The bounding box of all the halton boxes in latt. If missing or NULL, the min and max extent of latt are used.

...

Options of graphics::lines that control appearance of the boxes. For example, lty, col, etc.

Details

Lines on the current plot are produced.

Value

NULL is returned invisibly.

Author(s)

Trent McDonald

@examples lattice <- hip.lattice.polygon( box = matrix(c(0,0,1,1),2), J = c(2,2) bases = c(2,3) ) plotLattice(lattice)


SDraw documentation built on July 8, 2020, 6:23 p.m.