v0.3.2-rc2
·
28 commits
to main
since this release
New Functions and Functionality
- Added
g_lineplot()for creating line plots with optional summary statistics table. Includes helper functionscalc_stats(),g_lineplot_table(), andpreprocess_lineplot_data(). - Added
ard_tabulate_abnormal_by_baseline()for creating an Analysis Results Data (ARD) object counting participants with abnormal assessments, stratified by their baseline status. - Added
tbl_mmrm()andget_mmrm_results()functions to create regression tables for Mixed Models for Repeated Measures (MMRM). (#163) - Added
gg_mmrm_lineplot()to create line plots of MMRM results. (#181) - Added
gg_pkc_lineplot()to create line plots for PK data. (#185) - Added
annotate_gg_pkc()to add optional summary statistics table to
gg_pkc_lineplot(). (#189) - Refactored the underlying
data.framealignment and rendering methodology used for plot annotations. Functions for table annotation now use a completely rebuilt engine that ensures X-axis synchronization for stacked tables (annotate_riskdf()) and flexible, reliable placement for floating tables (annotate_surv_med(),annotate_coxph()). (#189) - Refactored functions for lineplot plotting - added
gg_lineplot()andannotate_gg()to create lineplots and annotate summary statistics table. (#184) - Added functions
reverse_ci(),reverse_rate_difference()to reverse confidence intervals and rate differences in tables fromadd_row_difference(). (#204) g_lineplot(),g_lineplot_table(), andpreprocess_lineplot_data()were deprecated. (#184)- Added
tbl_coxph()to render pairwise Cox proportional hazards results as a gtsummary table. (#159) - Added
tbl_hierarchical_incidence_rate()which computes the incidence rate of adverse events (#211) - Added
adjust_stat_columns_wrap()which keep the presentation of statistics in one row (#219) get_cox_pairwise_df()now allows for different methods to compute p-value (#191) and to handle ties (#193).tbl_coxph()now accepts a data.frame created byget_cox_pairwise_df()as input. (#207)- Added
add_grade_column()to inject a grade-label column intotbl_hierarchical_rate_by_grade()output. Decoupled from the table builder to prevent Cartesian join explosion intbl_merge(). (#226) get_cox_pairwise_df()now fully supportsstrata()terms in survival formulas (#256).- The
"likelihood-ratio"test now intelligently switches betweensurvival::survreg()(for unstratified models) andsurvival::coxph()(for stratified models) (#256). - Stripped package namespace prefixes (e.g.,
survival::) from survival formulas to prevent evaluation errors (#256). - Added
...support inget_cox_pairwise_df()forconf.int(e.g., to adjust CI level) androbust = TRUE(for robust standard errors).
Other Updates
tbl_hierarchical_rate_and_count()now emits zero-rows for unobserved factor levels in the first hierarchical variable. (#233)df2gg_aligned()anddf2gg_floating()now preserve original ggplot objects inattr(result, "plotlist")for downstream data extraction after combining withcowplot. (#208)- Remove warning when data has more levels than needed for grade_groups on tbl_hierarchical_rate_by_grade.
- Changed the default
conf.typefrom"log"to"plain"(linear) intbl_survfit_times()andtbl_survfit_quantiles()to align with GDSR guidelines. (#173) - Removed bold from headers when using
tbl_strata()(#133). - Unified border width in
theme_gtsummary_roche()to 0.5 for header. (#154) - Added example on how to stratify
tbl_baseline_chg()byPARAMand split into a list. - Adjusted
tbl_mmrm()to allowbase_df = NULL. - Fixed two bugs related to summary statistics calculation in
ard_tabulate_abnormal_by_baseline(). (#198) - Fixed a bug in
gg_pkc_lineplot()causing misplaced error bars on a log scale. (#199) - Adjusted
gg_pkc_lineplot()to usetbl_roche_summary()for automatic decimals formatting. - Adjusted
tbl_hierarchical_incidence_rate()to handle first event as well as
all events (#217) - Adjusted
tbl_baseline_chg()to allow for custiomization of display statistics (#222) - Changed baseline statistic argument in
tbl_baseline_chg()(#224) - Adjusted
modify_zero_recode()to account for strings comprising regular and non-breaking spaces (#230) tbl_roche_subgroups()now showsn,Events, andMedianper arm whentime_to_eventis specified. The total column showsTotal Eventsinstead ofTotal n. (#235)- Skip tests if suggested packages are missing (Failing test due to missing suggested package #252, @llrs-roche)
- The default
"log-rank"test now usessurvival::survdiff()instead ofcoin, aligning output more closely with SAS andrtables
What's Changed
- Addition of
split_byfor param and paramcd by @Melkiades in #155 - Remove bold spanning header as default. It should be applied to all spanning headers? by @Melkiades in #134
- fix alignment x-axis for gg_km by @Melkiades in #153
- removal
split_byfrom baseline_chg. Reverting to nativegtsummaryby @Melkiades in #168 - forest plot rework by @Melkiades in #162
- Update DESCRIPTION by @shajoezhu in #177
- Lineplot@main by @BFalquet in #166
- Hot fix row names by @Melkiades in #178
- Add tbl_mmrm() for MMRM regression tables by @Copilot in #165
- to support lbt06 table creation by @shajoezhu in #179
- Add gg_pkc_lineplot by @jszczypinski in #187
gg_mmrm_lineplotaddition by @Melkiades in #182- Adding annotate_gg_pkc by @jszczypinski in #190
- "Fixing two bugs critical for lbt06" by @jszczypinski in #197
- Add
tbl_rmpt()for Risk Management Plans tables by @chizapoth in #195 - Gg_pkc_lineplot_fix_error_bars by @jszczypinski in #200
- small utility functions for negating ci and difference by @chizapoth in #205
- 184_adjust_gg_lineplot by @jszczypinski in #203
- Fix get_cox_pairwise_df returning NA hazard ratios when arm has >2 levels by @Copilot in #194
- Adding tbl_coxph - a function to get a gtsummary object of pairwise cox proportional hazards test by @jszczypinski in #206
- Default conf.type to "plain" in tbl_survfit_times() and tbl_survfit_quantiles() by @Copilot in #196
- Activate revdepcheck on the CI by @llrs-roche in #210
- Remove warning on table creation by @llrs-roche in #209
- Add tbl hierarchical incidence rate by @jszczypinski in #214
- 217 adjust tbl hierarchical incidence rate by @jszczypinski in #218
- 212 add poolings@main by @Melkiades in #213
- Adjust tbl_baseline_chg by @jszczypinski in #222
- Fix default value for
statisticintbl_baseline_chgby @jszczypinski in #225 - 219 add protect stat columns by @jszczypinski in #220
- Use plotlist argument in plot_grid() to preserve ggplot data by @Melkiades in #229
- 230 modify modify zero recode by @jszczypinski in #231
- feat:
tbl_roche_subgroups()shows event counts for time-to-event by @Melkiades in #236 - feat: emit zero-rows for unobserved factor levels in tbl_hierarchical_rate_and_count() by @Melkiades in #234
- 239 fix tests fails deps by @jszczypinski in #240
- fix: extract .apply_hierarchical_indent() for consistent indentation by @Melkiades in #238
- 242 fix tests warnings by @jszczypinski in #243
- 191 193 coxph pvalue ci method by @jszczypinski in #244
- Make warnings on tests fail the test. by @llrs-roche in #248
- 207 tbl coxph work with get cox pairwise df by @jszczypinski in #245
- Skip tests if suggested dependency is missing by @llrs-roche in #253
- fix: decouple visual styling from tbl_hierarchical_rate_by_grade to prevent Cartesian join explosion by @Melkiades in #228
- Skip if suggested package is missing by @llrs-roche in #259
- 256 get cox pairwise df strata in formulas by @jszczypinski in #258
New Contributors
- @BFalquet made their first contribution in #166
- @Copilot made their first contribution in #165
- @jszczypinski made their first contribution in #187
- @chizapoth made their first contribution in #195
- @llrs-roche made their first contribution in #210
Full Changelog: v0.3.1...vX.Y.Z-rc1