xy.grid | R Documentation |
Creates a 2-d grid.
xy.grid(rangex, rangey, nx, ny = nx)
rangex |
A length 2 numeric vector: the range of the x-variable. |
rangey |
A length 2 numeric vector: the range of the y-variable. |
nx |
The number of points of the grid in the x-direction. |
ny |
The number of points of the grid in the y-direction. |
A grid of the coordinates of nx*ny
points on the x-y plane, expanded in a matrix of nx*ny
rows and 2 columns:
a row gives the (x,y) coordinates of a point.
xy.grid(c(3,7),c(11,17),nx=5,ny=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.