June 2017
Beginner to intermediate
576 pages
15h 22m
English
One benefit of assigning plots to a plot object is that you can later send the plots to an external file, such as a PDF, view it externally, and even view it in your browser directly from R. For example, for the Lattice graphs example, you can use trellis.device and specify the output parameters, and then print the object. As we illustrated in an earlier chapter, you can use browseURL to open the PDF in your browser:
# send to pdfsetwd("C:/PracticalPredictiveAnalytics/Outputs")trellis.device(pdf, file = "x3.pdf")print(p)dev.off()#NOT run#browseURL('file://c://PracticalPredictiveAnalytics//Outputs//x3.pdf')