If I Want To Save A Plot To A Pdf File Which Of The Following #609
If I want to save a plot to a PDF file, which of the following is a correct way of doing that?
This multiple choice question (MCQ) is related to the book/course gs gs110 R Language. It can also be found in gs gs110 Profiling, Simulation and Data Analysis - Exploratory Data Analysis - Quiz No.1.
If I want to save a plot to a PDF file, which of the following is a correct way of doing that?
Construct the plot on the screen device and then copy it to a PDF file with dev.copy2pdf()
Construct the plot on the PNG device with png(), then copy it to a PDF with dev.copy2pdf()
Open the PostScript device with postscript(), construct the plot, then close the device with dev.off()
Open the screen device with quartz(), construct the plot, and then close the device with dev.off()