Skip to content

Commit

Permalink
Add visit subtitle to tm_g_ci (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua authored Sep 19, 2022
1 parent b78dfeb commit 1e2ccfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Implemented `nestcolor` in examples, refactored `tm_g_barchart_simple` to allow use of `nestcolor`.
* Added more descriptive title/labels to `tm_g_ci`.
* Updated `tm_a_mmrm` column name when no treatment is selected from "all obs" to "All Patients".
* Added a subtitle to `tm_g_ci` with visit name.

### Bug fixes

Expand Down
1 change: 1 addition & 0 deletions R/tm_g_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ srv_g_ci <- function(id, # nolint
y <- merged_data()$columns_source$y_var
color <- merged_data()$columns_source$color
ggplot2_args$labs$title <- paste("Confidence Interval Plot by", datasets$get_varlabels(attr(x, "dataname"), x))
ggplot2_args$labs$subtitle <- paste("Visit:", merged_data()$filter_info$y_var[[2]]$selected[[1]])
ggplot2_args$labs$x <- datasets$get_varlabels(attr(x, "dataname"), x)
ggplot2_args$labs$y <- paste(
merged_data()$filter_info$y_var[[1]]$selected[[1]],
Expand Down

0 comments on commit 1e2ccfb

Please sign in to comment.