Last chance! 50% off unlimited learning
Sale ends in
pdf
and png
, except that different defaults are provided, including for the plotting parameters.myPDF(fileName, width = 5, height = 3,
mar = c(3.9, 3.9, 1, 1),
mgp = c(2.8, 0.55, 0),
las = 1, tcl=-0.3, ...)myPNG(fileName, width = 600, height = 400,
mar = c(3.9, 3.9, 1, 1),
mgp = c(2.8, 0.55, 0),
las = 1, tcl=-0.3, ...)
.pdf
.5
.3
.0
for the default.-0.5
.par
.edaPlot
data(marioKart)
#=====> Save a plot to a PDF <=====#
# myPDF("myPlot.pdf")
data(run10)
histPlot(run10$time)
# dev.off()
#=====> Save a plot to a PNG <=====#
# myPNG("myPlot.pdf")
data(run10)
histPlot(run10$time)
# dev.off()
Run the code above in your browser using DataLab