New features
add_interactions_by_step() to add potential
relevant interactions using step() (#60)long_to_seq() to convert from long format to a sequence
object (#57)missing_text for theme_gtsummary_prop_n() and
theme_gtsummary_unweighted_n() (#59)overall_string for theme_gtsummary_prop_n() (#59)Improvements
style_grouped_tbl() and grouped_tbl_pivot_wider() now accepts tables
generated with gtsummary::tbl_stack()plot_trajectories() now accepts survey object (#57)Bug fix
theme_gtsummary_unweighted_n()Bug fix
theme_gtsummary_prop_n(mean_sd = FALSE)combine_answers() when data is a survey object (#55)Improvements
plot_multiple_answers_dodge() now uses safe_pal() by default (#55)plot_trajectories() now uses safe_pal() by default (#56)Minor breaking change
theme_gtsummary_prop_n() and theme_gtsummary_unweighted_n() have been
updated following version 2.5.0 of gtsummary (#44)plot_proportions() has been reorganized (some column names have changed
when calling return_data = TRUE)New features
plot_categorical() to plot a categorical variable by sub-groups
using bar plots (#47)plot_continuous() to plot a continuous variable by sub-groups
using bar boxplots (#47)plot_means() to compare means by sub-groupsmean_sd() to compute means, standard deviation and confidence
intervals by sub-groupmedian_iqr() to compute medians, quartiles and interquartile
ranges by sub-groupsvyoneway() to test for equal means for survey design objectsvyttest_oneway() test for gtsummary::add_p.tbl_svysummary using
survey::svyttest() for comparing 2 means and svyoneway() for comparing 3
means or moresafe_pal() and corresponding scales scale_fill_safe()
and scale_colour_safe() for ggplot2 (#49)minimal for plot_proportions() (#51)drop_ba_by for plot_multiple_answers() and
plot_multiple_answers_dodge()Fix
proportions() when .na.rm = TRUE (#46)New features
gtsummary: theme_gtsummary_prop_n(),
theme_gtsummary_unweighted_n(), theme_gtsummary_fisher_simulate_p() and
theme_gtsummary_bold_labels() (#42)fisher.simulate.p(), an implementation of the Fisher test, with computation
of p-values by Monte Carlo simulation in larger than 2×2 tables, to be used
in gtsummary::add_p() (#41)New features
plot_trajectories() and plot_periods() to plot individual
trajectories (similar to sequence index plots) (#35)view_dictionary() and view_detailed_dictionary() to display
the variable dictionary of a data frame, a tibble or a survey object (#33)view_dictionary() and view_detailed_dictionary() are also accessible
through dedicated addins (#33)to_DT() to convert the result of labelled::look_for() into
a DT::datatable() (#33)gtsummary:
bold_variable_group_headers(), italicize_variable_group_headers(),
indent_labels() and indent_levels() (#34)New feature
plot_multiple_answers_dodge() (#31)Fix
plot_multiple_answers() with NA values when drop_na = FALSE (#31)New features
plot_multiple_answers() to plot a multiple answers question
coded as several binary variables (#29)combine_answers() for multiple answers questions (#29)New feature
dependencies for install_dependencies() (#27)New features
grouped_tbl_pivot_wider(),
multinom_add_global_p_pivot_wider() and style_grouped_tbl()) for grouped
tables generated by gtsummary::tbl_regression() for multinomial models,
multi-components models or other grouped models (#3)dummy_proportions() helper for plot_proportions() (#21)free_scale for plot_proportions() (#22)install_dependencies() now checks if dependencies are on CRAN/BIOC, installs
those available and returns the list of packages not installed/updated.New features
plot_proportions() now accepts several conditions (#18)stratified_by() helper for plot_proportions() (#19)cut_quartiles() (#13)convert_continuous for plot_proportions() (#14).drop_by_na for proportion() (#12)drop_by_na for plot_proportions() (#16)Bug fixes
proportion() when .conf.int = TRUE and some rows have no
observation (N = 0) (#15)New features
proportion() could be applied to atomic vectors (#4)periods_to_long() (#7)plot_proportions() (#9)