Next: Saving graphics in other
Up: Graphics and output
Previous: Formatting screen output
- in R
- >postscript(file="file.eps",horiz=TRUE,onefile=FALSE,width=8.5,height=11,paper="letter")
- the 'onefile' part makes an eps file rather than a ps;
use 'onefile=TRUE' to get regular ps; eps is good for embedding
in Latex files
- R graphics commands.....
- >dev.off() #this kills of the device and closes the postscript
file - I have had printing problems if I don't do this
- a second way in R
- R graphics commands ...
- dev.copy2eps(file="file.eps",width=4) #
note that if you specify both width and height, the aspect ratio may
not be preserved
- in S:
- S graphics commands ....
- >printgraph(file="file.ps",print=F,maximize=TRUE,horizontal=FALSE,width=8.5,height=11)
Chris Paciorek
2004-02-19