Skip to content

Version 1.4 additions#248

Merged
mattdbowes merged 36 commits intomasterfrom
Version-1.4-additions
Jan 15, 2026
Merged

Version 1.4 additions#248
mattdbowes merged 36 commits intomasterfrom
Version-1.4-additions

Conversation

@mattdbowes
Copy link
Collaborator

  • Updated chart types. Deprecated 'a4', 'tiny', and 'fullslide'. Added 'fullslide_half' chart type.
  • Add new grattan_save_overleaf function and associated utilities to identify and save charts to an Overleaf atlas.
  • Update create_fullslide function to ensure .pdf outputs match Grattan's current powerpoint template.
  • Add new font handling utilities to ensure fonts match Grattan's current style guide, and are consistent across operating systems.
  • Updated grattan_scale functions to by default hide the zero label if the axis starts at zero.
  • Made consequential updates to tests and added new tests to expand coverage for functions added in version 1.3 and current version.

Deprecate unused 'tiny', 'a4' and 'normal_169' chart types. Update tests to ensure they work given this change. Update grattan_label so it uses updated 'linewidth' parameter.
Previously save_chartdata threw a warning if select_data was TRUE and a column that was used in a layer wasn't found in the chart data. However, this occurs often when layers have their own data that isn't in the underlying ggplot dataframe. Instead, the function now checks only in layers that don't rely on their own dataframe.
Remove deprecated functions from codecov testing.
Introduces overleaf_utils.R with functions to set, get, and manage Overleaf project directories for chart export via Dropbox. Adds grattan_save_overleaf() to save charts directly to the selected Overleaf project's atlas folder, streamlining workflow for Overleaf-based report writing.
Fix error in directory handling for finding overleaf atlas
Remove grattan save test that created unnecessary 'test' folder.
Update fullslide pdf to better mimic our new Grattan slide templates.
Fixes issue with fullslide_narrow .pdf export, and updated function documentation to reflect updates.
Previously, fonts for powerpoint and slide exports did not match grattan style guide. This update allows for correct fonts to be registered upon package loading, and then used upon chart export.
By default, axes that start at zero will not show a '0' label, consistent with general Grattan style.
Update .gitignore and remove reference to %||% rlang operator.
Update font handling approach to ensure 'normal' font (sans default) is used for normal charts, and slides consistently use correct fonts where available. Update information provided on package loading re fonts and tidy up package loading message. Minor adjustment to create_fullslide positioning of the caption. Update tests and documentation in line with these changes.
Minor bug fixes and updates to news.md.
Remove some unnecessary dependencies.
@mattdbowes mattdbowes merged commit 0b335a0 into master Jan 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant