generPoly | R Documentation |
Generate a regular grid of polygons and optionally write
them on a file for input to califlopp
generPoly(step = 5, np = 10, file = "data", plot = TRUE)
step |
Step of grid, in meter. |
np |
Number of polygons on each axis. |
file |
Pathname of the polygons file to be created. If NULL, no file created. |
plot |
If TRUE, plot of the polygons. |
When file
is not NULL, a polygons file is created. It
is in the format 2 of califlopp
and the values separator is tabulate.
An object of class "listpoly"
The polygons are numbered from 1, from the left to the right, then from bottom to top.
"listpoly-class"
, plot.listpoly
a <- generPoly(np=3, file=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.