View source: R/pretty_map_tools.R
summarise_by_lat | R Documentation |
raster
by latitudeThis function summarises the values of a raster
across latitudinal bands using a user-supplied function, such as mean
.
summarise_by_lat(x, stat = mean)
x |
A |
stat |
A function that summarises the values of |
This routine is implemented within add_profile_lat
.
The function returns a dataframe with the latitudinal coordinates of each band (‘y’) and the summary (‘stat’),
Edward Lavender
d <- summarise_by_lat(dat_gebco)
utils::head(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.