[R] Why color changed in ps.file?

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu May 31 08:55:04 CEST 2001

On Thu, 31 May 2001, Stat/NCKU wrote:

> Dear R-friends,
> When I selected "Save as postscript" via mouse left-button on the active
> "R Graphics" window, those colored lines I made in the plot changed in
> the saved postscript file, e.g., color blue becomes green, red becomes blue,
> ...
> I have not changed any setting/options.
> What's going on?

You have failed to give us a reproducible example.  I just tried

abline(h=5, col="blue")

and got blue on screen and in the postscript.

> My version of R is
> > version
>          _
> platform i386-pc-mingw32
> arch     x86
> os       Win32
> system   x86, Win32
> status   Patched
> major    1
> minor    2.2
> year     2001
> month    03
> day      22
> language R

That's obselete. Please update.  If you then still have problems (and I can
see no reason why this has changed, but we cannot debug versions we no
longer have installed), you need to send a reproducible example and its
output.  One possibility is that the problem is in your (unspecified)
postscript translator confusing RGB colours.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list