@@ -7,7 +7,7 @@ library(patchwork)
77library(readr )
88library(stringr )
99library(tidyr )
10-
10+ library( tidytext )
1111# *--------------------------------- Orderly ----------------------------------*
1212orderly_parameters(pathogen = NULL )
1313
@@ -90,7 +90,7 @@ temp_2 <-colour_palette[8]
9090colour_palette [8 ] <- " #f0e68c"
9191
9292colour_palette <- c(colour_palette , temp , temp_2 )
93- scales :: show_col(colour_palette )
93+ # # scales::show_col(colour_palette)
9494
9595custom_colours <- c(' Significant / Adjusted' = colour_palette [3 ],
9696 ' Significant / Not adjusted' = colour_palette [1 ],
@@ -153,11 +153,11 @@ risk_table_plt <- (risk_table_plt_infection / risk_table_plt_sero / risk_table_
153153 ( risk_table_plt_death / risk_table_plt_spill / risk_table_plt_other ) +
154154 plot_annotation(tag_levels = ' A' ) + plot_layout(guides = " collect" )
155155
156- risk_table_plt
156+ # # risk_table_plt
157157left_col <- risk_table_plt_infection / risk_table_plt_sero / risk_table_plt_neuro
158158right_col <- risk_table_plt_death / risk_table_plt_spill / risk_table_plt_other
159159
160- (left_col | right_col ) +
160+ risk_table_plt <- (left_col | right_col ) +
161161 plot_annotation(tag_levels = ' A' ) +
162162 plot_layout(guides = " collect" , widths = c(1 , 1 ), heights = c(7 / 15 , 1.5 , 1.5 ))
163163
@@ -256,7 +256,7 @@ rf_facet_o2 <- rt_plot |>
256256 guides(fill = guide_legend(nrow = 4 ,byrow = TRUE )) +
257257 facet_wrap(~ riskfactor_outcome , scales = " free" , ncol = 2 )
258258
259- rf_facet_o2
259+ # # rf_facet_o2
260260
261261ggsave(" figure_SI_risk_facet_option_2.pdf" , plot = rf_facet_o2 ,
262262 width = 17 , height = 12 )
0 commit comments