Re: R-beta: netscape/R interaction [color allocation]

Martin Maechler (maechler@stat.math.ethz.ch)
Thu, 18 Jun 1998 20:03:56 +0200


Date: Thu, 18 Jun 1998 20:03:56 +0200
Message-Id: <199806181803.UAA17202@sophie.ethz.ch>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: Gordon.Harrington@uni.edu
Subject: Re: R-beta: netscape/R interaction [color allocation]

Our solution to the famous  "Color allocation error"
(not only appearing in R;  
 S-plus e.g., uses black & white color scheme when it can't allocate the
 desired colors)

is to *ALWAYS* use
	netscape -install
	-----------------
(installs its own color map); this might be ugly but is working always,
contrary to	  ==
	netscape -noinstall
		  ==
which remedies the problem also in some circumstances, but not in all.

[[The ``best'' solution would be to switch to an environment with
  16 or 24 bit colors  ((eg. Linux / Intel)) ....]]

Martin

PS: I agree that it would be nicer if R dealt more gracefully with this
    problem. Ideally, the x11() driver would try to find ``close colors in
    the given color map'' as soon as it can't allocate new colors.

    Not that I knew anything on how this could be programmed....



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._