randomgrid | R Documentation |
Generates a random spatial sampling using a bivariate random uniform distribution.
randomgrid(
n_samp = 1000,
xmin = -100,
xmax = 100,
ymin = -100,
ymax = 100,
seed = 123456
)
n_samp |
number of sampling locations to output (default: 1000). |
xmin |
minimum x-axis coordinate (default: -100). |
xmax |
maximum x-axis coordinate (default: 100). |
ymin |
minimum y-axis coordinate (default: -100). |
ymax |
maximum y-axis coordinate (default: 100). |
seed |
integer, seed for randomization. |
data.frame object with x and y columns, with n_samp rows.
John L. Darcy
# library(specificity)
# g <- randomgrid()
# plot(g)
# g2 <- randomgrid(n_samp=50, xmin=0, ymin=0)
# plot(g2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.