generate_particles | R Documentation |
Initialize a set of particle locations for use in particle_flow.
generate_particles(
x,
n = 1000,
sample = "random",
equalarea = TRUE,
epsg = 8857,
expand = 0.25
)
x |
A wind_field object. |
n |
Positive integer giving the total number of particles in the grid. If |
sample |
Sampling scheme, either "random" (the default) to generate points at random locations, or "grid" to generate points on a regular grid. |
equalarea |
Logical indicating whether to generate points on an equal area basis (TRUE, the default) or in lon-lat space (FALSE, which over-samples higher-latitude regions). |
epsg |
EPSG code for the projection in which to generate points. Only used if |
expand |
Proportion by which to expand the bounding box around |
A two-column matrix of x (longitude) and y (latitude) values, with a row for each particle.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.