Re: [R] Create pdf and postscript files

From: David Hajage <dhajage_at_gmail.com>
Date: Tue 27 Dec 2005 - 21:21:43 EST

... I'm so stupid !

Thank you very much.

David Hajage
Interne de santé publique
Institut Curie

2005/12/27, Ronnie Babigumira <rb.glists@gmail.com>:
>
> 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@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

	[[alternative HTML version deleted]]


______________________________________________ R-help@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

Received on Tue Dec 27 21:37:32 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:42 EST