lat_bins_degrees {palaeoverse} | R Documentation |
A function to generate latitudinal bins of a given size for a user-defined latitudinal range. If the desired size of the bins is not compatible with the defined latitudinal range, bin size can be updated to the nearest integer which is divisible into this range.
lat_bins_degrees(size = 10, min = -90, max = 90, fit = FALSE, plot = FALSE)
size |
|
min |
|
max |
|
fit |
|
plot |
|
A dataframe
of latitudinal bins of user-defined size. The
data.frame
contains the following columns: bin (bin number), min
(minimum latitude of the bin), mid (midpoint latitude of
the bin), max (maximum latitude of the bin).
Lewis A. Jones
Bethany Allen
For equal-area latitudinal bins, see lat_bins_area.
# Generate 20 degrees latitudinal bins
bins <- lat_bins_degrees(size = 20)
# Generate latitudinal bins with closest fit to 13 degrees
bins <- lat_bins_degrees(size = 13, fit = TRUE)
# Generate latitudinal bins for defined latitudinal range
bins <- lat_bins_degrees(size = 10, min = -50, max = 50)