Skip to content

Commit bf02b68

Browse files
author
Luis Arge
committed
PNG to PDF
1 parent 43f3ced commit bf02b68

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

HelperScripts/graph_annotations.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ Plot_INDEL_Only <- function(Mydf, X_labels, Cutoffs, X_limits, plot_type) {
228228
#----------
229229
# Build output filepath and save plots to file
230230
Save_SNP_Plots <- function(Directory, Prefix, Suffix, SNP_plot) {
231-
outfile_snp_fp <- paste0(Directory, "/Plots/", Prefix, "_SNP_distributions", Suffix, ".png")
231+
outfile_snp_fp <- paste0(Directory, "/Plots/", Prefix, "_SNP_distributions", Suffix, ".pdf")
232232
print(paste0("SNP graph filename path is ", outfile_snp_fp))
233-
ggsave(outfile_snp_fp, plot = SNP_plot, device = "png")
233+
ggsave(outfile_snp_fp, plot = SNP_plot, device = "pdf")
234234
}
235235

236236
Save_Indel_Plots <- function(Directory, Prefix, Suffix, Indel_plot) {
237-
outfile_indel_fp <- paste0(Directory, "/Plots/", Prefix, "_INDEL_distributions", Suffix, ".png")
237+
outfile_indel_fp <- paste0(Directory, "/Plots/", Prefix, "_INDEL_distributions", Suffix, ".pdf")
238238
print(paste0("Indel graph filename path is ", outfile_indel_fp))
239-
ggsave(outfile_indel_fp, plot = Indel_plot, device = "png")
239+
ggsave(outfile_indel_fp, plot = Indel_plot, device = "pdf")
240240
}
241241

242242
#############################

0 commit comments

Comments
 (0)