cartography

cartography is a skill for Claude Code, Codex from LeoLin990405/r-analytics-skill. It costs 19 tokens per session (626 once invoked), scanned A, original, MIT.

An R package for thematic cartography, which means making maps that show data through colours, symbols, labels, and map layout. It works with sf spatial data.

In plain words
What is it for?
Use it for coloured area maps, proportional symbols, category maps, labels, legends, titles, scale bars, and north arrows.
Why use it?
It helps turn geographic measurements and categories into maps that are easier to compare and publish.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for coloured area maps, proportional symbols, category maps, labels, legends, titles, scale bars, and north arrows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leolin990405/r-analytics-skill/cartography
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LeoLin990405/r-analytics-skill --skill cartography
Clone the repo
git clone --depth 1 https://github.com/LeoLin990405/r-analytics-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cartography

README.md
[![agentmods](https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/cartography/github.svg)](https://agentmods.dev/skills/leolin990405/r-analytics-skill/cartography)
Your own site
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/cartography"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/cartography/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cartography

Your own site · 80×15
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/cartography"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/cartography.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 626 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00626
Opus 5.5 $0.00008 $0.00250
Sonnet 5.5 $0.00004 $0.00125
Haiku 4.5 $0.00002 $0.00063

Measured 2mo ago against content hash 5254af91edcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cartography scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sub-skills/r-spatial/r-spatial-mapping/cartography/SKILL.md · 141 lines

What it actually says

cartography

Thematic cartography.

Basic Map

library(cartography)
library(sf)

# Read data
mtq <- st_read(system.file("gpkg/mtq.gpkg", package = "cartography"))

# Plot base map
plot(st_geometry(mtq), col = "lightblue", border = "white")

Choropleth Map

# Choropleth
choroLayer(
  x = mtq,
  var = "MED",
  method = "quantile",
  nclass = 5,
  col = carto.pal("green.pal", 5),
  border = "white",
  legend.title.txt = "Median Income"
)

Proportional Symbols

# Proportional circles
propSymbolsLayer(
  x = mtq,
  var = "POP",
  col = "red",
  border = "white",
  legend.title.txt = "Population"
)

# Proportional + choropleth
propSymbolsChoroLayer(
  x = mtq,
  var = "POP",
  var2 = "MED",
  col = carto.pal("blue.pal", 4)
)

Typology Map

# Categorical map
typoLayer(
  x = mtq,
  var = "STATUS",
  col = carto.pal("pastel.pal", 4),
  legend.title.txt = "Status"
)

Labels

# Add labels
labelLayer(
  x = mtq,
  txt = "LIBGEO",
  col = "black",
  cex = 0.7,
  halo = TRUE
)

Layout Elements

# Title
layoutLayer(
  title = "Map Title",
  author = "Author",
  sources = "Data source",
  scale = 5,
  north = TRUE
)

# North arrow
north(pos = "topleft")

# Scale bar
barscale(size = 5)

Color Palettes

# Available palettes
display.carto.all()

# Get palette
carto.pal("green.pal", 5)
carto.pal("red.pal", 7)
carto.pal("blue.pal", 4)
carto.pal("orange.pal", 6)

Smoothed Map

# Kernel density
smoothLayer(
  x = mtq,
  var = "POP",
  typefct = "exponential",
  span = 3000,
  beta = 2
)
# Flow map
gradLinkLayer(
  x = links,
  df = flow_data,
  xid = "origin",
  yid = "destination",
  var = "flow"
)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 141 lines · 19 tokens per session scan A 5254af91edcf

Subscribe to this mod's changes

cartography is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (5 stars, last pushed 2d ago), licensed MIT. It adds 19 tokens to every session and 626 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

cartography compared with skills from other repositories

cartography next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cartographyLeoLin990405/r-analytics-skillSkill52d agoMITA19Claude Code, Codex
abstraction-to-designyogsoth-ai/de-anthropocentric-research-engineSkill51014d agoApache-2.0A18Claude Code, Codex
data-science-statistical-analysisj4flmao/agent-skillsSkill383d agoMITA103Claude Code, Codex
r-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0A53Claude Code
stata-ai-fusionhaoyu-haoyu/stata-ai-fusionSkill454mo agoMITA117Claude Code, Codex
netresearch-brandingnetresearch/netresearch-branding-skillSkill42d agononeA64Claude Code
openclaw-carapaceopenclaw/clawhubSkill9.5kyesterdayMITA50Claude Code, Codex