← Back to all sparks
R

r2dii.plot

ANALYTICS
Velocity0.0

Visualize the Climate Scenario Alignment of a Financial Portfolio

PACTA's climate-alignment charting layer split prep from plotting, then settled into stable.

climate-financedata-visualizationpactaggplot2r-packageapi-design
Current state
r2dii.plot renders the standard PACTA climate-alignment charts — trajectory, tech mix, emission intensity — as ggplot2 objects, paired with the 2DII colour palettes and theme. Since 0.4.0 the package has exposed a two-step pipeline where prep_*() shapes the data before plot_*() draws it, while qplot_*() remains the one-call convenience path. It declared itself stable in early 2025.
Where it's heading
The package has been converging on a settled contract for years. Early releases chased visual polish and label handling, then 0.2.0 exposed the palette scales as reusable ggplot2 components, and 0.4.0 made the prepared data a first-class artefact rather than something hidden inside a plotting call. Recent releases are documentation and hygiene: a data_dictionary describing every column, definitions filled in, demo datasets renamed to say they are demos. It also moved organisations, from 2DII to RMI-PACTA, and its releases stay pinned to r2dii.analysis and to ggplot2's deprecation schedule.
Prediction
With the lifecycle marked stable and the last two releases confined to dataset naming and documentation, the next release is most likely another ggplot2 compatibility pass or a sibling-package alignment rather than new chart types.

Recent moves

  1. 1y ago

    Bundled datasets renamed to mark them as demos

    The bundled market_share and sda datasets are renamed with a _demo suffix. A naming clarification that makes their example status explicit, though it will break any code that referenced them by the old names.

    View source ↗
  2. 1y ago

    Column definitions added to the data dictionary

    Fills in definitions for the data_dictionary introduced one release earlier. Completing the documentation artefact rather than changing behaviour.

    View source ↗
  3. 1y ago

    Data dictionary lands and the package declares itself stable

    Adds a data_dictionary dataset defining the columns of every dataset the package uses or exports, and marks the package lifecycle stable. The ggplot2 3.5.0 and 3.6.0 compatibility work in the same release is the routine cost of sitting on top of a fast-moving plotting library.

    View source ↗
  4. 2y ago

    r2dii.plot 0.4.0

    ⚡ SPARK

    The structural break in the package's history: data preparation is pulled out of every plot_*() function into matching prep_*() functions, so plotting becomes a two-step pipeline. Later releases document and stabilise the contract drawn here.

    View source ↗
  5. 3y ago

    PACTA colour palettes exposed as datasets after org move

    Exposes the PACTA brand, scenario, sector and technology colours as plain datasets of hex codes, letting users apply the visual language outside the package's own plot functions. The repository also moved to the RMI-PACTA organisation, a governance change rather than a technical one.

    View source ↗
  6. 4y ago

    Trajectory plots move to percentage scaling alongside r2dii.analysis

    Realigns the package with r2dii.analysis 0.1.13, switching qplot_trajectory() to plot percentage of initial production by scope on a percentage y-scale, with value_col and perc_y_scale exposed on plot_trajectory() for control. Plots now start at the projected start year, which is what allowed the techmix bar removal.

    View source ↗