An RKWard plugin package for creating beautiful maps using the cartographr R package. This plugin provides a graphical user interface (GUI) to fetch data from OpenStreetMap and generate customizable map plots directly within RKWard.
sf object.cartographr package.You can install this plugin package directly from GitHub using the devtools package in R.
# install.packages("devtools") # If you don't have it installed
# devtools::install_github("AlfCano/rk.cartographr")
install.packages("rk.cartographr", repos = c('https://alfcano.r-universe.dev', 'https://cloud.r-project.org'))
After installation, restart RKWard for the plugin to appear in the menus.

Screenshot of the path in the main menu.
The workflow is designed in two main steps: first fetching the data, then plotting it.
Plots -> Open Street Map -> Get Open Street Map Data.https://www.openstreetmap.org/#map=12/19.0537/-98.2775) into the OpenStreetMap URL field. The plugin will automatically parse the latitude and longitude.
Screenshot of the RKWard interface operating the rk.cartographr Map Obtaining module, showing the Data Source configuration and Dimensions selection.
map).Submit. This will run the get_osmdata() function and create an sf object in your R environment.Plots -> Open Street Map -> Plot Cartographr Map.sf object you just created (e.g., map) from the data selector.
Screenshot of the RKWard interface operating the rk.cartographr Choropleth Maps module, showing spatial join configuration and palette selection.

Screenshot of the rendering device showing the output of the resulting thematic map, with cartographic aesthetic elements ready for publication.
Submit to generate the final plot in the RKWard output window.This plugin requires the following R packages to be installed:
cartographrsfggplot2Alfonso Cano Robles (alfonso.cano@correo.buap.mx)
With assitance of Gemini a LLM from Google.
This plugin is licensed under the GPL (>= 3).