spread_degrees | R Documentation |
Spread angles to minimum degrees difference
spread_degrees(
degrees,
min_degrees = 10,
iteration = 1,
max_iterations = 20,
verbose = FALSE,
...
)
degrees |
|
min_degrees |
|
... |
additional arguments are ignored. |
The function takes a vector of angles in degrees, and
adjusts any angles with adjacent angle below a minimum
angle min_degrees
until the minimum angle is min_degrees
.
If all input angles fit this criteria, it is returned
unchanged, otherwise it will adjust angles then
iteratively call itself until the condition is met.
If all angles are less the min_degrees
degrees from
the nearest adjacent angle, then all angles are equally
spaced around 360 degrees.
Other venndir spatial:
degrees_to_adj()
,
diff_degrees()
,
display_angles()
,
mean_degree_arc()
,
mean_degrees()
,
rescale_coordinates()
degrees <- c(5, 10, 15, 100, 105, 110, 200, 300, 358);
degrees
spread_degrees(degrees);
degrees2 <- sample(degrees);
degrees2
spread_degrees(degrees2);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.