View source: R/utils_sampling.R
sample_rectangle | R Documentation |
Sample n point regularly spaced on a rectangle
sample_rectangle(n = 200, scaling = 0, jitter = 10, x0, y0, x, y)
n |
number of points |
scaling |
expansion factor |
jitter |
jitter factor |
x0 , y0 , x , y |
coordinates of the center, width and height of the sampled rectangle |
a dataframe with x and y columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.