Nothing
# Copyright Barry Rowlingson <b.rowlingson@lancaster.ac.uk> and
# Peter Diggle (c) 1991-3; http://www.maths.lancs.ac.uk/~rowlings/Splancs/
# R port: copyright 1998-2000 by Roger S. Bivand
gridpts <- function(poly,npts,xs,ys)
{
bb <- bboxx(bbox(poly))
if(!missing(npts))
{
areap <- areapl(poly)
areab <- areapl(bb)
ratio <- areab/areap
ngen <- npts*ratio
nx <- sqrt(ngen)
ny <- sqrt(ngen)
xs <- (diff(range(bb[,1])))/nx
ys <- (diff(range(bb[,2])))/ny
}
xc <- seq(from=min(bb[,1])-(xs/2),to=max(bb[,1])+(xs/2),by=xs)
yc <- seq(from=min(bb[,2])-(ys/2),to=max(bb[,2])+(ys/2),by=ys)
nx <- length(xc)
ny <- length(yc)
npts <- nx*ny
xy <- matrix(c(xc[(0:(npts-1))%%nx+1],yc[(0:(npts-1))%/%nx+1]),ncol=2)
pip(xy,poly)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.