Learn R Programming

pgs (version 0.4-0)

PPQcxLat2: Generator of 2D quincunx lattices of point patterns

Description

Create a FigLat-class object representing a 2D quincunx lattice of point patterns.

Usage

PPQcxLat2(d=1,dx=sqrt(2)*d,n=1,hp=dx/5,vp=hp,h3=TRUE)

Arguments

d
the distance between two neighbour diagonal locations. Default: 1.
dx
the distance between two neighbour horizontal locations. Default value: quincunx inside a square.
n
the number of points in each point pattern. Valid values for n: 1, 4, 5, 6, 7, 8 or 9 (see PP2 documentation). Default: 1 (lattice of points).
hp
the horizontal side length of the rectangle bounding the point pattern. Default: dx/5.
vp
the vertical side length of the rectangle bounding the point pattern. Default: hp (square bounding box for each point pattern).
h3
determines the orientation of the point pattern when n=6, 7 or 8, see PP2 documentation.

Value

A FigLat-class object.

See Also

Generators FigLat, PointPattern, PP2, QcxLat2, other generators of 2D figure lattices PPHexLat2, PPRectLat2, QHexLat2, QQcxLat2, QRectLat2, SHexLat2, SQcxLat2, SRectLat2, LLat2.

Examples

Run this code
plot(PPQcxLat2(n=6,h3=FALSE),xlim=c(0,3),ylim=c(0,3))

Run the code above in your browser using DataLab