Creates interactive maps using 'MapLibre GL' and 'deck.gl' via 'htmlwidgets'. Provides GPU-accelerated layers for points, lines and polygons, plus linked user interface components such as filters, views and summary cards for exploratory analysis and production dashboards.
GPU-accelerated interactive maps for R (MapLibre GL + deck.gl via htmlwidgets).
Status: early / MVP. APIs may change.
add_*() verbs plus formula mappings like radius = ~value.sf objects for points, lines, and polygons.CRAN submission is pending. Install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("jhumbl/maplamina")
A minimal example showing views switching the radius mapping:
set.seed(1)
n <- 2000
d <- data.frame(
lon = runif(n, -60, 60),
lat = runif(n, -60, 60),
value = runif(n, 1, 10)
)
maplamina() |>
add_circles(d, stroke = FALSE, fill_color = "darkblue") |>
add_views(
view("Value", radius = ~value),
view("Inverse Value", radius = ~(max(value) - value + 1))
)
add_filters()
filter_range() numeric sliderfilter_select() categorical selectoradd_summaries()
summary_count(), summary_mean(), summary_min(), summary_max(), summary_sum()tmpl()add_panel() + section() / sections()add_legend()add_circles() points/circlesadd_lines() paths/linesadd_polygons() filled polygons (+ stroke)add_icons() / add_markers() point icons/markers?maplamina, ?add_circles, ?add_views, ?add_filters, ?add_summaries.Planned improvements include more layer types, additional components, and alternative themes.
MIT.