| lat_bins | 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(size = 10, max = 90, min = -90, fit = FALSE, plot = FALSE)
size |
|
max |
|
min |
|
fit |
|
plot |
|
A dataframe of latitudinal bins of user-defined size.
Lewis A. Jones
Bethany Allen
# Generate 20 degrees latitudinal bins bins <- lat_bins(size = 20) # Generate latitudinal bins with closest fit to 13 degrees bins <- lat_bins(size = 13, fit = TRUE) # Generate latitudinal bins for defined latitudinal range bins <- lat_bins(size = 10, max = 50, min = -50)