Skip to content

Instantly share code, notes, and snippets.

@k-hench
Created March 25, 2019 16:23
Show Gist options
  • Save k-hench/1207463fab8d00cf6c5f88a57bdc5e72 to your computer and use it in GitHub Desktop.
Save k-hench/1207463fab8d00cf6c5f88a57bdc5e72 to your computer and use it in GitHub Desktop.
pts <- strata_coordinates( arapat, as.SpatialPoints = TRUE )
stamen_bb <- function(bb){
bt <- pts@bbox %>%
as_tibble()
c(left = bt$min[1],
bottom = bt$min[2],
right = bt$max[1],
top = bt$max[2])
}
bb <- pts@bbox %>% stamen_bb()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment