@@ -421,7 +421,7 @@ encoding_missing_data <- function(id, summary_per_patient = FALSE, ggtheme, data
421421 )
422422 )
423423 ),
424- ui_teal_transform_data (ns(" decorator" ), transformators = decorators ),
424+ ui_transform_teal_data (ns(" decorator" ), transformators = decorators ),
425425 teal.widgets :: panel_item(
426426 title = " Plot settings" ,
427427 selectInput(
@@ -860,7 +860,7 @@ srv_missing_data <- function(id, data, reporter, filter_panel_api, dataname, par
860860 })
861861
862862
863- decorated_summary_plot_q <- srv_teal_transform_data (id = " decorator" , data = summary_plot_q , transformators = decorators )
863+ decorated_summary_plot_q <- srv_transform_teal_data (id = " decorator" , data = summary_plot_q , transformators = decorators )
864864 decorated_summary_plot_grob_q <- reactive({
865865 q <- if (isTRUE(input $ if_patients_plot )) {
866866 within(
@@ -1040,7 +1040,6 @@ srv_missing_data <- function(id, data, reporter, filter_panel_api, dataname, par
10401040 labs2 +
10411041 ggthemes2 +
10421042 themes2
1043-
10441043 },
10451044 env = list (
10461045 labs1 = parsed_ggplot2_args1 $ labs ,
@@ -1054,20 +1053,20 @@ srv_missing_data <- function(id, data, reporter, filter_panel_api, dataname, par
10541053 )
10551054 })
10561055
1057- decorated_combination_plot_q <- srv_teal_transform_data (id = " decorator" , data = combination_plot_q , transformators = decorators )
1056+ decorated_combination_plot_q <- srv_transform_teal_data (id = " decorator" , data = combination_plot_q , transformators = decorators )
10581057 decorated_combination_plot_grob_q <- reactive({
1059- within(
1060- decorated_combination_plot_q(),
1061- {
1062- g1 <- ggplotGrob(combination_plot_top )
1063- g2 <- ggplotGrob(combination_plot_bottom )
1064-
1065- g <- gridExtra :: gtable_rbind(g1 , g2 , size = " last" )
1066- g $ heights [7 ] <- grid :: unit(0.2 , " null" ) # rescale to get the bar chart smaller
1067- grid :: grid.newpage()
1068- grid :: grid.draw(g )
1069- }
1070- )
1058+ within(
1059+ decorated_combination_plot_q(),
1060+ {
1061+ g1 <- ggplotGrob(combination_plot_top )
1062+ g2 <- ggplotGrob(combination_plot_bottom )
1063+
1064+ g <- gridExtra :: gtable_rbind(g1 , g2 , size = " last" )
1065+ g $ heights [7 ] <- grid :: unit(0.2 , " null" ) # rescale to get the bar chart smaller
1066+ grid :: grid.newpage()
1067+ grid :: grid.draw(g )
1068+ }
1069+ )
10711070 })
10721071
10731072 combination_plot_r <- reactive({
@@ -1156,7 +1155,7 @@ srv_missing_data <- function(id, data, reporter, filter_panel_api, dataname, par
11561155 })
11571156
11581157 decorated_summary_table_q <-
1159- srv_teal_transform_data (id = " decorator" , data = summary_table_q , transformators = decorators )
1158+ srv_transform_teal_data (id = " decorator" , data = summary_table_q , transformators = decorators )
11601159 summary_table_r <- reactive({
11611160 req(summary_table_q())
11621161 decorated_summary_table_q()[[" table" ]]
@@ -1268,7 +1267,7 @@ srv_missing_data <- function(id, data, reporter, filter_panel_api, dataname, par
12681267 )
12691268 })
12701269
1271- decorated_by_subject_plot_q <- srv_teal_transform_data (id = " decorator" , data = by_subject_plot_q , transformators = decorators )
1270+ decorated_by_subject_plot_q <- srv_transform_teal_data (id = " decorator" , data = by_subject_plot_q , transformators = decorators )
12721271 decorated_by_subject_plot_print_q <- reactive(within(decorated_by_subject_plot_q(), print(plot )))
12731272
12741273 by_subject_plot_r <- reactive({
0 commit comments