README.md

leaflethex

The goal of leaflethex is to create hexbin layers that can be added to plots made with the leaflet package.

This is a work in progress and is not yet a functional R package. Stay tuned!

Installation

You can install the released version of leaflethex from CRAN with:

install.packages("leaflethex")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("rpruim/leaflethex")

Example

This is a basic example which shows you how to add the hexbin layer to your leaflet map:

library(leaflethex)
df = tibble(
  lat = rnorm(100),
  lng = rnorm(100)
)
map <- leaflet::leaflet(df) %>% 
  leaflet::addTiles() %>% 
  leaflethex::add_hexbin(
    radius = 19, 
    lowEndColor = "yellow", 
    highEndColor="red")
map

Parameters for add_hexbin



Try the leaflethex package in your browser

Any scripts or data that you put into this service are public.

leaflethex documentation built on Sept. 4, 2019, 9:03 a.m.