Skip to content

r2dii.plot 0.2.0

Compare
Choose a tag to compare
@maurolepore maurolepore released this 15 Oct 21:42
· 31 commits to develop since this release
a075a58

New features

  • plot_*() functions gain new parameters to help replicate some of
    qplot_*() behaviors.

  • New helpers to replicate with plot_*() functions the default labels of
    qplot_*() functions:

    • to_title()
    • format_metric()
    • recode_metric_techmix()
    • spell_out_technology()
  • New functions to easily apply 2DII colour palettes to any plot (#28
    @cjyetman):

    • scale_colour_r2dii()
    • scale_colour_r2dii_sector()
    • scale_colour_r2dii_tech()
    • scale_fill_r2dii()
    • scale_fill_r2dii_sector()
    • scale_fill_r2dii_tech()

Enhancements

  • plot_trajectory() now defaults to not center the y-axis around the
    start value.

  • plot_trajectory() now displays benchmark trajectory lines with improved
    visibility (#389 @Antoine-Lalechere).

  • The website now links to the blog where we advertise exciting news.

  • The website now links to other r2dii packages (#381 @georgeharris2deg).

Bug fixes

  • plot_trajectory() now displays only integer years on the x-axis (#403).

  • The 'Get started' section of the website works again.

  • theme_2dii() now correctly uses the base_size argument.