Re: [R] configuring graphics device in Linux

From: megha patnaik <>
Date: Sat, 15 Nov 2008 12:00:50 +0530

Hi John,

I had struggled with this myself, and investigation revealed that it isn't an R problem, but an X11 bug in Ubuntu. This is evident from plot(rnorm(10)) failing to perform. If you are seeing this, then it is because X11 does not automatically detect Intel graphic cards. The solution is to edit your xorg.conf file, changing it to something like (this is from my xorg.conf):

Section "Device"

    Identifier "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)"

    Driver "intel"

Make sure you keep a copy of the original xorg.conf file while you're experimenting.

Does this work for you? We can dig in deeper once we've identified where the problem is.

2008/11/15 Erik Iverson <>

> John -
> john polo wrote:
>> Erik Iverson wrote:
>>> You should begin by telling us what you did to produce the result. That
>>> way we can tell if it's something in your R commands or not. If
>>> you give us step by step instructions to reproduce the problem (with
>>> simulated data, or a dataset distributed with R), it becomes much
>>> easier to debug.
>> sorry. most of these commands are lifted straight from The Guide i
>> referred to:
>>> data(trees) # built-in data set
>>> attach(trees)
>>> plot(Height,Volume)
>> and then the Graphics Device opens and i have the same problem with
>> viewing the plot.
> OK, this looks fine from my end. The first thing I would do is to start R
> without loading any config scripts or data files.
> You can do this by starting R with the 'vanilla' option, that is,
> R --vanilla
> from the command prompt. Then repeat your commands. See if anything
> changes. If it does change, do you have a file called .RData somewhere in
> your home directory? Try renaming or deleting it. You haven't yet said what
> OS you're using either.
> That would be my first step.
> ______________________________________________
> mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 15 Nov 2008 - 06:36:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 15 Nov 2008 - 08:30:24 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive