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.
plot_techmix()
and qplot_techmix()
always output the same bars’ order (#365).
Data labels can be now modified by adding a column label
and label_tech
to input data.
The new qplot_trajectory()
, qplot_techmix()
, and qplot_emission_intensity()
output polished plots (#264).
plot_trajectory()
, plot_techmix()
, and plot_emission_intensity()
now output more basic plots.
Error messages now more closely follow the tidyverse style guide (#324).
plot_trajectory()
now plots the main line on top of all other lines, so it’s no longer hidden when it overlaps with other lines (#223).
plot_techmix()
for the “automotive” sector
is now coloured so that the darkest colours corresponds to the least sustainable technology, i.e. consistently with other technologies. This pattern of decreasing sustainability is now also reflected in the order of the legend labels (#328).