Add new function format_flip_bar_charts() that applies most of the formatting needed to make horizontal bar graphs pretty.
Add new functions plot_label() and mplot_label() that make it easier to add on-graph plot labels. mplot_label() is the vectorised version that lets you do multiple labels in one function.
Add new function add_zeroline() to add an appropriately formatted black line along the zero y-axis.
New functionality in scale_y_continuous_e61() to specify break intervals directly in the limits argument.
New vignette explaining how and why to use on-graph labelling over legends.
Add new messages and information to save_e61() to try and explain why users need to set their own dimensions to get good graph aesthetics.
Add argument to turn off text wrapping in labs_e61().
Add argument to change the aspect ratio in theme_e61().
Change default dimension behaviour in save_e61() to make graphs look sensible at 8.5 cm widths (corresponds to half width of a Word document).
Change base_size of graph text so the font size is readable at 8.5 cm widths.
Remove y_title_top_e61() and incorporate functionality directly into theme_e61() as the default. Users can choose to disable this behaviour with the y_top = FALSE argument.
Update the Getting Started vignette to showcase new functionality.
Fix issue with labels argument in scale_colour/fill_e61() not working.
Other minor improvements to functions, messages and documentation.
Do the following before requesting a review
[x] I have written tests covering functions I have added or changed.
[x] I have run tests and they all pass.
[x] I have ensured all new functions will show up in the _pkgdown.yml file.
[x] I have updated DESCRIPTION with any new package dependencies.
[x] I have updated NEWS.md with a brief description of my changes.
[x] I have updated the package documentation with devtools::document().
[x] I have updated the package website with pkgdown::build_site_github_pages().
Describe your changes
(Copied from NEWS.md)
format_flip_bar_charts()
that applies most of the formatting needed to make horizontal bar graphs pretty.plot_label()
andmplot_label()
that make it easier to add on-graph plot labels.mplot_label()
is the vectorised version that lets you do multiple labels in one function.add_zeroline()
to add an appropriately formatted black line along the zero y-axis.scale_y_continuous_e61()
to specify break intervals directly in thelimits
argument.save_e61()
to try and explain why users need to set their own dimensions to get good graph aesthetics.labs_e61()
.theme_e61()
.save_e61()
to make graphs look sensible at 8.5 cm widths (corresponds to half width of a Word document).base_size
of graph text so the font size is readable at 8.5 cm widths.y_title_top_e61()
and incorporate functionality directly intotheme_e61()
as the default. Users can choose to disable this behaviour with they_top = FALSE
argument.labels
argument inscale_colour/fill_e61()
not working.Do the following before requesting a review
_pkgdown.yml
file.DESCRIPTION
with any new package dependencies.NEWS.md
with a brief description of my changes.devtools::document()
.pkgdown::build_site_github_pages()
.