Skip to content
Back to formatted view

Raw Message

Message-ID: <43B11557.6030007@statistik.uni-dortmund.de>
Date: 2005-12-27T10:20:07Z
From: Uwe Ligges
Subject: Create pdf and postscript files
In-Reply-To: <a725cda30512270214l73a46e8g@mail.gmail.com>

David Hajage wrote:

> Hello,
> 
> 
> 
> I would like to learn how to create a pdf and a postscript file from an R
> graphic.
> 
> For example, I tried :
> 
> 
> 
> plot(1)              # example
> 
> pdf("H:/Perso/essai.pdf")

You opened a device, say "A".



> postscript("H:/Perso/essai.ps")

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


> 
> 
> But the pdf document created is empty.
> 
> 
> 
> How do these functions work ?
> 
> 
> 
> Thank you very much.
> 
> --
> David Hajage
> Interne de sant?? publique
> Institut Curie
> 
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html