Description Usage Arguments Value Examples
View source: R/create_points_pattern.R
Transform surface-chlorophyll values into a randomly distributed relative number of points on a plane depending on the value of each cell. A multiplicator value is used to control the total number of points. A mixed layer depth is defined in the third column (particles are at the surface at zero, below surface at negative values)
1 | create_points_pattern(raster, multi = 1, mld = 0)
|
raster |
input chlorophyll RasterLayer |
multi |
multiplicator to control number of points |
mld |
mixed layer depth |
list with matrix of longitude, latitude, mixed layer depth
1 2 3 4 5 |
data(surface_chl)
pts <- create_points_pattern(surface_chl, multi=1000)
plot(surface_chl)
points(pts,cex=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.