[R] graphics display problem

Jason Turner jasont at indigoindustrial.co.nz
Tue Nov 5 20:05:05 CET 2002

On Tue, Nov 05, 2002 at 02:34:58PM -0800, Deling Liu wrote:
>   and I got only one figure (residuals vs. the fitted; instead of several
>   plots), and the following message:
>   Error in abline (h=0, lty=3, col="gray"):
>       Error: X11 cannot allocate additional graphics colors
>   Consider using X11 with colortype="pseudo cube" or "gray".
>   Does it seem that X windows has a problem with "gray"? Can the default
>   color used by abline() be changed to something other than gray?  Or is it 
> caused by incomplete R installation?

Nope.  You have a 256 colour display, and you're running something else that's
consuming all the available colours.  Solutions are:

1) try again, but this time, a) close all R plot windows, b) use the command 
(as suggested in the error message) X11(colortype="pseudo.cube".
then try your plot command again.

2) find the most colourful applications you're running (gnome is notorious,
as is netscape/mozilla), and shut them, and try again.

3) get a better graphics card.


Indigo Industrial Controls Ltd.
jasont at indigoindustrial.co.nz
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