tidyplots (development version)
Breaking changes
- Avoid rounding errors of p values in
add_test_pvalue()(#142). -
split_plot()is now powered by ggplot2 faceting and not anymore bypatchwork::wrap_plots(), which led to unexpected glitches in figure legends. However, this change will eventually break code, that usespatchwork::wrap_plots()arguments likeguides = "collect"(#95, #141).
Improvements
- The
labelsparameter ofadjust_*_axis()now survives repeated calls changing the same scale (#136). - Fixed
add_data_points()to respect constantcolorwhenwhite_border = TRUE(#115). - Prepare for deprecation of
%+%andgeom_label(label.size = NA).
tidyplots 0.3.1
CRAN release: 2025-07-02
Breaking changes
- Removed the parameters
widthsandheightsfromsplit_plot(). Useadjust_size()beforesplit_plot()instead. - Removed the function
format_number(), which is available from the scales packages. - Functions to rename, reorder, sort and reverse the levels of variables mapped to x, y, and color now have the suffix
_levels()instead of_lables(). For example,rename_x_axis_levels()(#113).
Improvements
- New parameter
paired_byinadd_test_pvalue()andadd_test_asterisks()enables paired comparisons. - New parameter
comparisonsinadd_test_pvalue()andadd_test_asterisks()enables selected comparisons (#82). - New parameter
my_styleintidyplot()for providing a styling function (#85). - Support for global
tidyplots_options()affecting all tidyplots in the current session. Supported options includewidth,height,unit,dodge_width, andmy_style(#84, #85). -
add_annotation_text()now supports colored text (#86). - Support for axis
limitswhen the axis is of typedate,time, ordatetime(#97, #99). - A default jitter seed in
add_data_points_jitter(),add_data_labels()andadd_data_labels_repel()now facilitates the alignment of jittered labels and points (#104). - Fixed
add_histogram()now respects thecolorparameter (#106). - New dataset
pcacontaining a principle component analysis. - New
add_ellipse()function (#52).
tidyplots 0.2.2
CRAN release: 2025-03-07
This is a patch release mainly focusing on preparing tidyplots for the upcoming release of ggplot2 3.6.0.
Breaking changes
- Hard deprecation of
as_tidyplot(). Converting a ggplot to a tidyplot probably never was a good idea.
Improvements
- Support ordered factors provided to color (#75)
- Prepare tidyplots for upcoming ggplot2 3.6.0 release (#60)
- Switch from the magrittr pipe
%>%to the base R pipe|>in both the documentation and code (#55, #56) - More meaningful error for invalid plotmath expressions.
- Update documentation (@mthulin, #62)
tidyplots 0.2.1
CRAN release: 2025-01-19
Breaking changes
- The
energydataset has been updated to contain the correct energy values in TWh. The variablepowerhas been renamed toenergy. This change will affect all code that uses theenergydataset.
Bug fixes
- The
limitsparameter ofadjust_x_axis()andadjust_y_axis()had no effect when combined withadd_count_*()(#41).
Improvements
- New color scheme
colors_discrete_rainbow(@electrolars, #35). -
save_plot()gainsview_plotargument to control whether to view the plot on screen after saving (#40). - New
add_annotation_text(),add_annotation_rectangle(),add_annotation_segment()for including annotation at specific coordinates (#38).
tidyplots 0.2.0
CRAN release: 2024-12-16
Bug fixes
- The standard deviation (SD) in
add_sd_errorbar()andadd_sd_ribbon()is now shown as one time SD, not 2 times SD as before. Thanks to @awata25 for spotting this (#25).
Improvements
- Improved documentation (#6).
- The default
dodge_widthis now determined by a heuristic (#13). - Tidyplots now requires ggplot2 (>= 3.5.0) (#16).
- The minimal themes
theme_minimal_*()now have axis ticks. - New color scheme
colors_discrete_algersuggested by @loukesio (#18). - New function
adjust_theme_details()(#23) - New arguments
fontsize,family,face, andcolorinadjust_title(),adjust_caption(),adjust_x_axis_title(),adjust_y_axis_title(), andadjust_legend_title()for more detailed control over fonts (#24).
tidyplots 0.1.2
CRAN release: 2024-11-08
- Initial CRAN release
- New S3 class
tidycolorfor color schemes. The print method oftidycolorsends a html preview of the color scheme to the RStudio viewer panel. - New
new_color_scheme()to create custom color schemes. - New build-in color schemes using the prefix
colors_discrete_,colors_continuous_andcolors_diverging_. -
adjust_colors()now also works with too few or too many provided colors. - New function factory behind
adjust_x_axis()andadjust_y_axis() - Updated README and documentation.