v0.9.3
insights-engineering-bot
released this
08 Dec 17:05
·
180 commits
to main
since this release
New Features
- Added
ref_group_position
function to place the reference group facet last, first or at a certain position. - Added
keep_level_order
split function to retain original order of levels in a split. - Added
level_order
split function to reorder manually the levels. - Added function
get_indents_from_stats
to format and return indent modifiers for a given set of statistics. - Added internal utility function
apply_auto_formatting
to check for"auto"
formats and replace them with
implementation offormat_auto
in analyze functions. - Added utility function
labels_use_control
to modify labels with control specifications. - Added list containing default statistics for each method group,
tern_default_stats
. - Added summarize function version of
count_occurrences
analyze function,summarize_occurrences
. - Added referential footnotes to
surv_time
for censored range observations, controlled via theref_fn_censor
parameter. - Added helper function
h_adlb_abnormal_by_worst_grade
to prepareADLB
data to use as input incount_abnormal_by_worst_grade
. - Added function
rtable2gg
that convertsrtable
objects toggplot
objects. - Added helper function to set default
na_str
globally withset_default_na_str()
and addeddefault_na_str()
for all interested functions.
Enhancements
- Added
ref_group_coxph
parameter tog_km
to specify the reference group used for pairwise Cox-PH calculations whenannot_coxph = TRUE
. - Added
annot_coxph_ref_lbls
parameter tog_km
to enable printing the reference group in table labels whenannot_coxph = TRUE
. - Added
x_lab
parameter tog_lineplot
to customize x-axis label. - Remove 25% padding of y-axis in
g_lineplot
. - Added support for creating multiple risk difference columns, each comparing to a single comparison group. Multiple comparison groups can be specified as a vector via the
arm_y
argument. - Allowed numeric vector as
count_by
input inanalyze_num_patients
andsummarize_num_patients
. - Aligned plot and table vertically in
g_lineplot
.
Bug Fixes
- Fixed bug in
decorate_grob
preventing text wrapping from accounting for font size. - Fixed implementation of
na_str
argument in all column-wise analysis and tabulation functions.
Miscellaneous
- Specified minimal version of package dependencies.
- Upgraded
to_string_matrix
to take into accountwidths
and other printing parameters.
What's Changed
- Adds min package version by @averissimo in #1012
- Improve documentation of
whiskers
param ing_lineplot
by @edelarua in #1110 - Refactor
count_occurrences
by @edelarua in #1076 - Add split functions for
ref_group
position by @Melkiades in #1111 - change
cohort_id
andstrata
tosubject_var
andgroup_var
. by @ayogasekaram in #1106 - Fix integrations tests after
ref_group
update by @edelarua in #1115 - Add option to set reference arm in
g_km
by @edelarua in #1120 - Add
x_lab
parameter tog_lineplot
by @edelarua in #1126 - Fix
decorate_grob
text wrapping by @edelarua in #1124 - Add utility functions for labels and formats by @edelarua in #1122
- Remove extra y-axis padding in
g_lineplot
by @edelarua in #1128 - Expand
get_stats
to cover all analysis functions by @edelarua in #1123 - Refactor
surv_time
to enable cell footnotes by @edelarua in #1116 - Improve
analyze_vars
documentation by @edelarua in #1129 - Add helper function to pre-process ADLB for
count_abnormal_by_worst_grade
by @edelarua in #1132 - Reorder doc pages so analyze functions appear first, add links in README by @edelarua in #1131
- Expose statistic function arguments in analyze functions by @edelarua in #1134
- Implement
na_str
argument in all columnwise analysis functions by @edelarua in #1140 - Add support for multiple risk difference columns by @edelarua in #1143
- Allow numeric input to
count_by
inanalyze_num_patients
by @edelarua in #1141 - Add function to convert rtables to ggplots by @edelarua in #1137
- Add "experimental" badge to
rtable2gg
by @edelarua in #1147 - Generate pkgdown site favicon by @edelarua in #1149
- Add
svglite
to Suggests by @edelarua in #1151 - Vertically align plot with table in
g_lineplot
by @edelarua in #1153 - Fix
ggsave
tests by @edelarua in #1154 - Add general default for
na_str
by @Melkiades in #1145 - add axis parameter to plot_grid() by @pawelru in #1155
- update g_lineplot snaps by @pawelru in #1157
- init commit for preping new cran release [skip vbump] by @shajoezhu in #1156
New Contributors
- @averissimo made their first contribution in #1012
Full Changelog: v0.9.2...v0.9.3