powered by
Produce simulataneous postscript and pdf images using a user defined plot function.
plotBoth(plotfn, filename, control = plotBoth.control(), ...)
A function containing the plotting commands
The name of the output file - .eps and .pdf will be appended to the postscript and pdf images respectively
The results of plotBoth.control controls font embedding and plotting.
plotBoth.control
Any additional arguments that need to be fed to plotfn
# NOT RUN { plotBoth(function(){ plot(rnorm(100),rnorm(100))}, 'test') # }
Run the code above in your browser using DataLab