Skip to content

Commit

Permalink
fix: don't do plot_layout() in plotPD()
Browse files Browse the repository at this point in the history
behaves strangely with non-square layouts
  • Loading branch information
jack-davison committed Aug 8, 2024
1 parent df55d6a commit 6052c34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/plotPD.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ plotPD <- function(dw_model,
printplots <- plots
if ("wd" %in% names(printplots) & polar.wd) {
printplots$wd <- patchwork::free(printplots$wd)
pw <- patchwork::wrap_plots(printplots, nrow = nrow)
} else {
pw <- patchwork::wrap_plots(printplots, nrow = nrow) +
patchwork::plot_layout(axes = "collect", axis_titles = "collect")
}
pw <- patchwork::wrap_plots(printplots, nrow = nrow)

# plot if `plot`
if (plot) {
Expand Down

0 comments on commit 6052c34

Please sign in to comment.