[R] R versions and PostScript files

peter dalgaard pdalgd at gmail.com
Fri Jul 22 11:20:23 CEST 2011


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
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list