Skip to content

Commit

Permalink
Merge branch 'main' into 1175_add_snapshot@main
Browse files Browse the repository at this point in the history
  • Loading branch information
ayogasekaram authored Mar 11, 2024
2 parents 2bdcd59 + 0d4487f commit 57bdafc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tern
Title: Create Common TLGs Used in Clinical Trials
Version: 0.9.3.9022
Date: 2024-03-08
Version: 0.9.3.9023
Date: 2024-03-11
Authors@R: c(
person("Joe", "Zhu", , "joe.zhu@roche.com", role = c("aut", "cre")),
person("Daniel", "Sabanés Bové", , "daniel.sabanes_bove@roche.com", role = "aut"),
Expand Down Expand Up @@ -35,7 +35,7 @@ Imports:
emmeans (>= 1.8.0),
forcats (>= 1.0.0),
formatters (>= 0.5.5),
ggplot2 (>= 3.4.0),
ggplot2 (>= 3.5.0),
grid,
gridExtra (>= 2.0.0),
gtable (>= 0.3.0),
Expand Down
7 changes: 4 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tern 0.9.3.9022
# tern 0.9.3.9023

### New Features
* Refactored `g_forest` to output a `ggplot` object instead of a `grob` object.
Expand All @@ -17,6 +17,7 @@
* Added function `expect_snapshot_ggplot` to test setup file to process plot snapshot tests and allow plot dimensions to be set.
* Began deprecation of the named element `strat`, to be renamed to `strata`, within the `variables` argument to `h_rsp_to_logistic_variables`, `h_logistic_mult_cont_df`, `h_odds_ratio_subgroups_df`, `h_coxreg_mult_cont_df`, `h_coxph_subgroups_df`, `h_tbl_coxph_pairwise`, `extract_rsp_biomarkers`, `extract_rsp_subgroups`, `extract_survival_biomarkers`, and `extract_survival_subgroups`.
* Began deprecation of the `strat` argument to `s_coxph_pairwise` and replaced it with the `strata` argument.
* Adapt to argument renames introduced in `ggplot2` 3.5.0.

# tern 0.9.3

Expand All @@ -25,14 +26,14 @@
* 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
* Added internal utility function `apply_auto_formatting` to check for `"auto"` formats and replace them with
implementation of `format_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 the `ref_fn_censor` parameter.
* Added helper function `h_adlb_abnormal_by_worst_grade` to prepare `ADLB` data to use as input in `count_abnormal_by_worst_grade`.
* Added `s_bland_altman` function to assess agreement between two numerical vectors.
* Added `s_bland_altman` function to assess agreement between two numerical vectors.
* Added function `rtable2gg` that converts `rtable` objects to `ggplot` objects.
* Added helper function to set default `na_str` globally with `set_default_na_str()` and added `default_na_str()` for all interested functions.

Expand Down
2 changes: 1 addition & 1 deletion R/g_forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ g_forest <- function(tbl,
plot.margin = margin(0, 0.1, 0.05, 0, "npc")
) +
scale_x_continuous(
trans = ifelse(logx, "log", "identity"),
transform = ifelse(logx, "log", "identity"),
limits = xlim,
breaks = x_at,
labels = x_labels,
Expand Down

0 comments on commit 57bdafc

Please sign in to comment.