remove_clipping() for disabling plot area clipping.add_test_pvalue_manual() and add_test_asterisks_manual() for adding pre-computed statistical comparisons via ggpubr::stat_pvalue_manual().add_data_points_jitter(), add_data_labels() and add_data_labels_repel() now expose the seed parameter.split_plot() is now powered by the ggplot2 faceting functions ggplot2::facet_wrap() and ggplot2::facet_grid(),
thereby replacing patchwork::wrap_plots(). While this improves consistency and solves glitches in figure legends,
it will eventually break code that relies on patchwork syntax (#95, #141).add_violin(), trim = TRUE is now the default. This improves accuracy when plotting small sample sizes and
aligns the behavior with ggplot2::geom_violin() (#151).add_test_pvalue() (#142).split_plot() gains the parameters rows and cols allowing to split the plot by two variables.
This functionality is powered by ggplot2::facet_grid().split_plot() gains the parameter axis.titles allowing to draw a "single" axis title, "all" axis titles, or just those on the layout "margins".adjust_size() gains the parameters overall_width and overall_height to set the dimensions of the entire multiplot layout generated with split_plot().
In contrast, the existing width and height parameters determine the size of each individual plot within the layout.tidyplot() gains the parameters paper and ink allowing to choose a color for the background (paper) and the
foreground elements like text and lines (ink). This allows for global color customization, such as enabling dark-mode plots.tidyplots_options() gains the parameters paper and ink allowing to set these parameters once for all tidyplots in the active R session.labels parameter of adjust_*_axis() now survives repeated calls changing the same scale (#136).add_data_points() does now respect constant color when white_border = TRUE (#115).%+% and geom_label(label.size = NA).widths and heights from split_plot(). Use
adjust_size() before split_plot() instead.format_number(), which is available from the scales packages._levels() instead of _lables(). For example, rename_x_axis_levels() (#113).paired_by in add_test_pvalue() and add_test_asterisks()
enables paired comparisons.comparisons in add_test_pvalue() and add_test_asterisks()
enables selected comparisons (#82).my_style in tidyplot() for providing a styling function (#85).tidyplots_options() affecting all tidyplots in the current session.
Supported options include width, height, unit, dodge_width, and my_style (#84, #85).add_annotation_text() now supports colored text (#86).limits when the axis is of type date, time, or datetime (#97, #99).add_data_points_jitter(), add_data_labels() and add_data_labels_repel()
now facilitates the alignment of jittered labels and points (#104).add_histogram() now respects the color parameter (#106).pca containing a principle component analysis.add_ellipse() function (#52).This is a patch release mainly focusing on preparing tidyplots for the upcoming release of ggplot2 3.6.0.
as_tidyplot(). Converting a ggplot to a tidyplot probably never was a good idea.%>% to the base R pipe |> in both the documentation and code (#55, #56)energy dataset has been updated to contain the correct energy values in TWh. The variable power has been renamed to energy. This change will affect all code that uses the energy dataset.limits parameter of adjust_x_axis() and adjust_y_axis() had no effect when combined with add_count_*() (#41).colors_discrete_rainbow (@electrolars, #35).save_plot() gains view_plot argument to control whether to view the plot on screen after saving (#40).add_annotation_text(), add_annotation_rectangle(), add_annotation_segment() for including annotation at specific coordinates (#38).add_sd_errorbar() and add_sd_ribbon() is now shown as
one time SD, not 2 times SD as before. Thanks to @awata25 for spotting this (#25).dodge_width is now determined by a heuristic (#13).theme_minimal_*() now have axis ticks.colors_discrete_alger suggested by @loukesio (#18).adjust_theme_details() (#23)fontsize, family, face, and color in
adjust_title(), adjust_caption(), adjust_x_axis_title(), adjust_y_axis_title(),
and adjust_legend_title() for more detailed control over fonts (#24).tidycolor for color schemes. The print method of tidycolor sends a html preview of the color scheme to the RStudio viewer panel.new_color_scheme() to create custom color schemes.colors_discrete_, colors_continuous_ and colors_diverging_.adjust_colors() now also works with too few or too many provided colors.adjust_x_axis() and adjust_y_axis()