Re: [R] configuring graphics device in Linux

From: megha patnaik <meghapatnaik_at_gmail.com>
Date: Sat, 15 Nov 2008 12:31:27 +0530

The steps I carried out to detect where the problem was were as follows: 1. Checked whether basic plots in R worked 2. Created a new UID ( which did not have my saved settings in R) and tried basic plots.

If 2. told me that margins were too large, then this was not a problem due to my past commands in R.

xorg.conf is a dangerous file to meddle with. The other symptoms I was seeing of poor graphics was an XL font size on my login screen and broken images in google earth. Are you seeing anything of the sort?

I am relatively new to the mailing list. Do tell me if this is better taken offline.

2008/11/15 megha patnaik <meghapatnaik_at_gmail.com>

> 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"
> EndSection
>
> 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 <iverson_at_biostat.wisc.edu>
>
> 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.
>>
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 15 Nov 2008 - 07:03:50 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 - 10:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive