[R] Error in X11

Peter Dalgaard BSA p.dalgaard at pubhealth.ku.dk
Sun Mar 4 01:06:47 CET 2001


myotis at cix.compulink.co.uk (Graham Smith) writes:

> In-Reply-To: <OF64BAAB51.93CEFB4D-ON852569DE.004CB60E at rtp.epa.gov>
> 
> This is more a linux question, but I have asked in some Linux 
> conferences with no success.
> 
> I am running 1.2.1 in Mandrake 7.2.Trying to run the graphics demo 
> produces axes, but no lines and I get an error message:
> 
> error in abline (h=0, col=gray(0,9))Error:X11 cannot allocate 
> additional graphics colors consider using x11 with colortype = 
> "pseudo.color" or "gray"
> 
> I am completely new to R and Linux and I am not sure how to fix this, I 
> am also not sure on how fixing this will affect other program such as 
> Grass which seems to have no problems drawing different coloured lines.
> 
> Can any one advise me how I fix this? It was installed with the 
> Mandrake RPM, and I did think of installing 1.2.2 to see if that 
> helped, but the Mandrake RPM isn't on Cran, there is a readme, but no 
> binary.

Basically this means that something else stole all of the colors
available for your display. Two ways out:

a) I think this only happens with 256-color (8bit) X servers. Set up
   your X server for 16 bit color depth or better.

b) remove application that use many colors. The background image or
   Netscape are likely culprits, but also the smoothly colored little
   Gnome icons are troublesome. KDE might be better in this regard
   according to what I've gathered.

Also, you might try taking the hint in that error message, e.g.:

c) x11(colortype="gray");demo(graphics)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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