r-mapgl

Generate interactive WebGL maps in R using the mapgl package.

19|1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/arthurgailes/awesome-r-skills --skill r-mapgl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-mapgl
Source: https://github.com/arthurgailes/awesome-r-skills/tree/main/skills/r-mapgl
Command: npx skills add https://github.com/arthurgailes/awesome-r-skills --skill r-mapgl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users create interactive, GPU-accelerated maps in R, suitable for web applications and Shiny dashboards, by leveraging Mapbox GL JS and MapLibre GL JS.

Core Features & Use Cases

  • Interactive Mapping: Build dynamic maps with smooth zooming, panning, and vector tile support.
  • Shiny Integration: Seamlessly embed interactive maps within R Shiny applications.
  • Data Visualization: Visualize large spatial datasets efficiently using WebGL.

Quick Start

Use the r-mapgl skill to create a basic interactive map using the provided 'nc' spatial data.

Frequently Asked Questions about r-mapgl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create interactive WebGL maps in R?

Create interactive WebGL maps in R using the mapgl package, which leverages Mapbox GL JS and MapLibre GL JS for dynamic visualizations. It supports smooth zooming, panning, and vector tile rendering within web applications.

Can I embed Mapbox GL JS maps in a Shiny application?

Yes, you can embed Mapbox GL JS maps in a Shiny application using the mapgl package. It facilitates seamless Shiny integration, allowing you to build dynamic dashboards with interactive mapping features.

Do I need an API key to use MapLibre GL JS for R mapping?

An API key is optional when using MapLibre GL JS for R mapping, but you will need one if you choose Mapbox or MapTiler services. The mapgl package requires an R environment with the package installed.

What is the best way to visualize large spatial datasets in R?

The best way to visualize large spatial datasets in R is using GPU-accelerated WebGL maps. The mapgl package handles large datasets efficiently by rendering vector tiles, 3D terrain, and custom layer styles dynamically.

Does mapgl support 3D terrain and custom layer styling?

Yes, mapgl supports 3D terrain and custom layer styling. It leverages Mapbox GL JS and MapLibre GL JS to facilitate advanced mapping features, enabling dynamic visualizations in R Shiny applications.