Skip to content

Create pdf and postscript files

5 messages · Uwe Ligges, David Hajage, Ronnie Babigumira

#
You need to open the pdf/poscript first and then plot...see ?postscript

      # open the file "foo.ps" for graphics output
      postscript("foo.ps")
      # produce the desired graph(s)
      dev.off()              # turn off the postscript device
David Hajage wrote:
#
David Hajage wrote:

            
You opened a device, say "A".
You opened another device say "B".

All your plotting will now go into device "B" until you close it by 
dev.off(), then all further plotting goes into device "A" - unless you 
start another device.

Uwe Ligges
#
Not at all...on the contrary, these are common slips as one is getting started and they can be nerve wrecking (I have 
only been using R for a month and I have had my fair share of them). Be sure to make RSiteSearch a good friend, very 
helpful.

Happy new year
David Hajage wrote: