📅  最后修改于: 2022-03-11 14:56:40.005000             🧑  作者: Mango
## Initiate writing to PDF file
pdf("path/to/file/PDFofG.pdf", height = 11, width = 8.5, paper = "letter")
## Create a graphical object g here
g # print it
## Stop writing to the PDF file
dev.off()