← Back to home
Comparison · Analytics

maplegend vs mirai

A side-by-side editorial comparison of maplegend and mirai — release velocity, themes, recent moves, and the top alternatives to consider.

maplegend vs mirai: at a glance

Featuremaplegendmirai
SectorAnalyticsAnalytics
Velocity score0.02.5
Sparks · 30d00
Top themescartography, legends, base-graphics, spatialparallel-computing, async, backpressure, shiny
Last editorial update53m ago3h ago
WebsiteVisit →Visit →

What is maplegend?

The legend engine mapsf spun out, now covering legend types the parent map package can draw.

maplegend draws the legends for base-R thematic maps, extracted from mapsf so both packages could evolve the legend vocabulary independently. It has been catching up to the map types it has to serve: 0.6.0 added choro_point, choro_line, and choro_symb for choropleth legends rendered on circles, lines, and symbols, following the histogram legend type in 0.4.0. Considerable effort has gone into behaving correctly when the plot aspect ratio is not 1, which required refactoring most of the package in 0.4.0 and still produced a proportional-symbol segment sizing fix in 0.6.3.

Read the full maplegend trajectory →

What is mirai?

mirai removed its dispatcher process and added memory backpressure to the queue.

The async evaluation framework releases roughly monthly and moves fast at the architecture level. In 2.7.0 the dispatcher stopped being a separate process and became a thread, after its loop had already been rewritten in C inside nanonext one release earlier. The same release added an opt-in memory budget for queued task payloads and try_mirai(), which returns NULL immediately rather than blocking when that budget is exhausted.

Read the full mirai trajectory →

maplegend vs mirai: editorial side-by-side

M
maplegend
ANALYTICS
0.0

The legend engine mapsf spun out, now covering legend types the parent map package can draw.

◆ Current state

maplegend draws the legends for base-R thematic maps, extracted from mapsf so both packages could evolve the legend vocabulary independently. It has been catching up to the map types it has to serve: 0.6.0 added choro_point, choro_line, and choro_symb for choropleth legends rendered on circles, lines, and symbols, following the histogram legend type in 0.4.0. Considerable effort has gone into behaving correctly when the plot aspect ratio is not 1, which required refactoring most of the package in 0.4.0 and still produced a proportional-symbol segment sizing fix in 0.6.3.

◆ Where it's heading

This is a support library whose backlog is defined by its caller. Every legend type mapsf can produce needs a matching legend renderer, and the release notes are dominated by spacing, offset, and border details — box_cex for symbol spacing, NA box placement in horizontal choropleth legends, text overflow when no_data is set. The shared vocabulary with mapsf is being maintained deliberately, with val_rnd, val_big, and val_dec propagating through legend types release by release. Version numbering is not monotonic in this feed, with 0.4.0 published seconds after 0.5.0.

◆ Prediction

Expect the remaining combined map types to acquire matching legends and the val_* formatting arguments to reach the types that still lack them.

M
mirai
ANALYTICS
2.5

mirai removed its dispatcher process and added memory backpressure to the queue.

◆ Current state

The async evaluation framework releases roughly monthly and moves fast at the architecture level. In 2.7.0 the dispatcher stopped being a separate process and became a thread, after its loop had already been rewritten in C inside nanonext one release earlier. The same release added an opt-in memory budget for queued task payloads and try_mirai(), which returns NULL immediately rather than blocking when that budget is exhausted.

◆ Where it's heading

Two threads of work run together: cutting overhead out of the task path — thread-based dispatcher, in-process transport for synchronous daemons, lower per-element dispatch cost in mirai_map() — and making the framework safe to embed in an event loop, where blocking the host R thread is not acceptable. Deployment reach is growing too, with http_config() launching remote daemons over HTTP APIs and auto-configuring for Posit Workbench. Each release pins a minimum nanonext version, so the two packages advance as one unit.

◆ Prediction

With backpressure in place but opt-in, the open question these notes leave is whether a default memory budget arrives; continued overhead reduction and Shiny-facing non-blocking paths are the safer bet.

Alternatives to maplegend and mirai

Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either maplegend or mirai.

See all maplegend alternatives → · See all mirai alternatives →

Recent activity from maplegend and mirai

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 25d agomiraiMap collection and daemon lifecycle fixes
  2. 2mo agomiraiAgent skill ships in-package; HTTP headers take over auth
  3. 2mo agomaplegendContinuous legend formatting and aspect-ratio segment fix
  4. 3mo agomiraiDispatcher becomes a thread, and the queue gains a memory budget
  5. 4mo agomaplegendChoropleth legends on points, lines and symbols
  6. 5mo agomiraiParallel RNG seeding leaves experimental status
  7. 6mo agomiraiRemote daemons over HTTP, and a C dispatcher loop
  8. 7mo agomaplegendPackage-wide refactor for non-unity aspect ratios, histogram legends
  9. 7mo agomaplegendSingle-modality legends allowed for typo, symb and prop_line
  10. 8mo agomiraiTelemetry span timing and daemon-switch fix
  11. 1y agomaplegendAlpha transparency and redraw on device resize
  12. 1y agomaplegendOffset and symbol sizing aligned with mapsf

Frequently asked questions

What is the difference between maplegend and mirai?

They serve adjacent needs but don't currently overlap on shipped themes. mirai is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is maplegend better than mirai?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. mirai is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to maplegend?

Top maplegend alternatives in Analytics are ranked by recent ship velocity. Browse the "maplegend alternatives" section above for the current picks, or visit /alternatives/maplegend for the full list with editorial commentary on each.

What are the best alternatives to mirai?

Top mirai alternatives in Analytics are ranked by recent ship velocity. Browse the "mirai alternatives" section above for the current picks, or visit /alternatives/mirai for the full list with editorial commentary on each.