example.bp.polys {tossm} | R Documentation |
This is a list of two polygons representing the extent of the two breeding populations in the TOSSM examples.
How to construct tossm polygon data objects:
The following code constructs these breeding population polygons, and so can be modified if the user wishes to create new polygons. Construction of these polygons requires the gpclib package that comes with tossm:
bp.polys<-list()
bp.polys[[1]]<-matrix(c(0,0,50,0,50,100,0,100),nrow=4,byrow=T)
bp.polys[[2]]<-matrix(c(50,0,100,0,100,100,50,100),nrow=4,byrow=T)
example.bp.polys<-lapply(bp.polys,as,"gpc.poly")
example.bp.polys
list (length = 2) of gpclib polygon objects (<gpclib>
)