That's great! Thank you all!! Final question: how can I edit permanently the .ps.prolog? Is the .First() function an option?
Please, tell me every detail as I am a total dumb! Many thanks Gaetano On Fri, Jul 22, 2011 at 11:27 AM, Ted Harding <ted.hard...@wlandres.net>wrote: > On 22-Jul-11 09:20:23, peter dalgaard wrote: > > > > On Jul 22, 2011, at 11:08 , (Ted Harding) wrote: > > > >> On 22-Jul-11 08:02:40, peter dalgaard wrote: > >>> [much snip] > >>> > >>> The .ps.prolog is not in C code but in an R character vector. > >> > >> While '?postscript' says (uder "Details:"): > >> > >> > >> Most of the PostScript prologue used is taken from the > >> R character vector '.ps.prolog'. This is marked in the > >> output, and can be changed by changing that vector. > >> (This is only advisable for PostScript experts: the > >> standard version is in ?namespace:grDevices?.) > >> > >> I have not been able to get my hands on that vector in an > >> R session. What is the incantation for locating it, please? > > > > grDevices:::.ps.prolog > > > > as in: > > > > .ps.prolog <- grDevices:::.ps.prolog > > .ps.prolog[39] <- "/setrgb { setrgbcolor } def" > > postscript() > > image(volcano) > > dev.off() > > > > -- > > Peter Dalgaard > > Ah, thanks! I wasn't using sufficiently many ":"'s! > Apologies for the fumble. > Ted. > > -------------------------------------------------------------------- > E-Mail: (Ted Harding) <ted.hard...@wlandres.net> > Fax-to-email: +44 (0)870 094 0861 > Date: 22-Jul-11 Time: 10:27:37 > ------------------------------ XFMail ------------------------------ > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.