Skip to content

Commit 6da5465

Browse files
committed
Fix plotting Convergence_Plot_All
1 parent f1a1a94 commit 6da5465

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

R/Mod_Convergence_Plot_All.R

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Convergence_Plot_All <- function(
304304

305305
grDevices::cairo_pdf(
306306
filename = IASDT.R::Path(Path_Convergence_All, "TracePlots_Alpha.pdf"),
307-
width = 18, height = 12)
307+
width = 18, height = 12, onefile = TRUE)
308308
purrr::walk(
309309
.x = Convergence_DT$Path_Trace_Alpha,
310310
.f = purrr::safely(~{
@@ -339,7 +339,7 @@ Convergence_Plot_All <- function(
339339
grDevices::cairo_pdf(
340340
filename = IASDT.R::Path(
341341
Path_Convergence_All, "TracePlots_Rho_Phylogenetic.pdf"),
342-
width = 18, height = 15)
342+
width = 18, height = 15, onefile = TRUE)
343343
invisible(print(Plot))
344344
grDevices::dev.off()
345345

@@ -385,7 +385,8 @@ Convergence_Plot_All <- function(
385385

386386
# Using ggplot2::ggsave directly does not show non-ascii characters
387387
# correctly
388-
grDevices::cairo_pdf(filename = Plot_Path, width = 18, height = 12)
388+
grDevices::cairo_pdf(
389+
filename = Plot_Path, width = 18, height = 12, onefile = TRUE)
389390
print(Plot)
390391
print(Plot2)
391392
grDevices::dev.off()
@@ -439,7 +440,8 @@ Convergence_Plot_All <- function(
439440

440441
# Using ggplot2::ggsave directly does not show non-ascii characters
441442
# correctly
442-
grDevices::cairo_pdf(filename = Plot_Path, width = 18, height = 12)
443+
grDevices::cairo_pdf(
444+
filename = Plot_Path, width = 18, height = 12, onefile = TRUE)
443445
print(Plot)
444446
print(Plot2)
445447
grDevices::dev.off()
@@ -486,11 +488,11 @@ Convergence_Plot_All <- function(
486488

487489
# Using ggplot2::ggsave directly does not show non-ascii characters
488490
# correctly
489-
grDevices::pdf(file = Plot_Path, width = 18, height = 12)
491+
grDevices::cairo_pdf(
492+
filename = Plot_Path, width = 18, height = 12, onefile = TRUE)
490493
print(Plot)
491494
print(Plot2)
492495
grDevices::dev.off()
493-
494496
}))
495497

496498
# # ..................................................................... ###
@@ -541,7 +543,8 @@ Convergence_Plot_All <- function(
541543

542544
# Using ggplot2::ggsave directly does not show non-ascii characters
543545
# correctly
544-
grDevices::pdf(file = Plot_Path, width = 18, height = 12)
546+
grDevices::cairo_pdf(
547+
filename = Plot_Path, width = 18, height = 12, onefile = TRUE)
545548
print(Plot)
546549
print(Plot2)
547550
grDevices::dev.off()

0 commit comments

Comments
 (0)