knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
You can install the package from Github:
# install.packages("remotes") remotes::install_github("JohnCoene/h3inr")
library(h3inr) hexagons <- quakes %>% geo_to_h3(lat, long, resolution = 4L) %>% # get hex id h3_to_geo(hex = hex) # get hex center coordinates hexagons %>% head() %>% knitr::kable()
See globe4r for an example of what h3inr enables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.