View source: R/attribute_sectors.R
attribute_sectors | R Documentation |
A full circle is 2*pi, the sector of each point is determined by atan2(y,x), the angle of the point relative to the horizontal line of the introduction site
attribute_sectors(
dataset,
nb_sectors = 8,
centroid = c(-75.67534, 40.41524),
rotation = 1
)
dataset |
A dataset to be processed |
nb_sectors |
Number of sectors to divide the invasion space (default: 8) |
centroid |
Coordinates of the centroid to center the circle (long, lat; default: -75.675340, 40.415240) |
rotation |
Number of rotations of the grid wanted (default: 1) |
The same table as dataset
multiplied by the number of rotations, with additional columns:
sectors
containing the total number of sectors considered, rotation_nb
containing the rotation considered,
sectors_nb
containing the sector number attributed to this cell in this rotation
new_dataset <- attribute_sectors(dataset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.