View source: R/Utility_functions.R
random_points | R Documentation |
Creates a two-column matrix where the first column is x-values and the second column is y-values and each row represents a point. Can be used to randomly generate a spatially explicit list of sites.
random_points(n.sites, x.max, y.max)
n.sites |
Numeric, the number of sites to generate |
x.max , y.max |
Numeric, the maximum distance in x or y directions that sites can be placed. |
Returns a two-column matrix of coordinate points.
random_points(20, 100, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.