Skip to content

Commit

Permalink
prepend page break to plots to avoid truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
fbenke-pik committed Sep 5, 2024
1 parent 5bd00b9 commit 1ab8df3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/showAreaAndBarPlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ showAreaAndBarPlots <- function(
}
}

cat("\\clearpage")

# Show plots.
if (showNonMainRegs) {
grid.arrange(p1, p2, p3, layout_matrix = rbind(c(1, 3), c(2, 3)), left = label)
Expand Down
1 change: 1 addition & 0 deletions R/showLinePlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ showLinePlots <- function(
}

# Show plots.
cat("\\clearpage")
grid.arrange(p1, p2, nrow = 1)
cat("\n\n")

Expand Down

0 comments on commit 1ab8df3

Please sign in to comment.