An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20051227/0b423823/attachment.pl
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:
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")
postscript("H:/Perso/essai.ps")
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
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
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20051227/4f295749/attachment.pl
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:
... I'm so stupid !
Thank you very much.
David Hajage
Interne de sant?? publique
Institut Curie
2005/12/27, Ronnie Babigumira <rb.glists at gmail.com
<mailto:rb.glists at gmail.com>>:
You need to open the pdf/poscript first and then plot...see ?postscript
# open the file " foo.ps <http://foo.ps>" for graphics output
postscript("foo.ps <http://foo.ps>")
# produce the desired graph(s)
dev.off() # turn off the postscript device
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")
>
> postscript("H:/Perso/essai.ps")
>
>
>
> 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 <mailto:R-help at stat.math.ethz.ch>
mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!