Skip to content

Commit

Permalink
Updated plot opts
Browse files Browse the repository at this point in the history
  • Loading branch information
knoiva-indecon committed Feb 21, 2024
1 parent 0bbb5ec commit 2e45b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FrEDI/testing/utils_plot_DOW_byImpactTypes.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ plot_DOW_byImpactTypes <- function(
# plotList_i <- list(spacer1=spacer0, plot=plotGrid_i, legend=grobLgd0)
plotList_i <- list(spacer1=spacer0, plot=plotGrid_i, spacer2=spacer0, legend=grobLgd0, spacer3=spacer0)
# plotGrid_i <- ggarrange(plotlist=plotList_i, nrow=2, ncol=1, common.legend=T, legend="none", heights=c(0.1, n_impTypes, 0.25))
plotGrid_i <- ggarrange(plotlist=plotList_i, nrow=5, ncol=1, legend="none", heights=c(0.01, n_impTypes, 0.05, 0.5, 0.01))
plotGrid_i <- ggarrange(plotlist=plotList_i, nrow=5, ncol=1, legend="none", heights=c(0.01, n_impTypes, 0.05, 0.75, 0.01))
title0_i <- sector0
grobTit_i <- text_grob(title0_i, color="black", size=12, face="bold", hjust=0.5)
plotYTit_i <- text_grob(yTitle, color = "black", rot = 90)
Expand Down
2 changes: 1 addition & 1 deletion FrEDI/testing/utils_plot_DOW_byModelType.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ plot_DOW_byModelType <- function(

###### Add Legend ######
plotList0 <- list( x=plot_spacer, y=main_grid, w=plot_spacer, z=plot_legend, u=plot_spacer)
main_plot <- ggarrange(plotlist=plotList0, ncol=1, heights=c(0.2, nRow + 1, 0.2, 1.5, 0.2))
main_plot <- ggarrange(plotlist=plotList0, ncol=1, heights=c(0.2, nRow + 1, 0.2, 1, 0.2))
main_plot <- main_plot |> annotate_figure(top=plot_title)

###### Return######
Expand Down

0 comments on commit 2e45b6a

Please sign in to comment.