[R] possible bug in ggplot2 v0.5.2???
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Jul 4 08:55:50 CEST 2007
On Tue, 3 Jul 2007, hadley wickham wrote:
> Hi Stephane,
> The problem is that the windows graphics device doesn't support
> transparent colours. You can get around this in two ways:
It certainly does! Try col="transparent" (and perhaps consult your
dictionary). It was news to me that the windows() graphics device worked
What it does not support as yet is translucent colours, and that is a
restriction imposed by Windows (translucency support was introduced for
Windows XP, and we still try to support older versions of Windows, unlike
the MacOS people). I have been working on a workaround, so translucency
support is likely to be implemented in R 2.6.0 for users of XP or later.
Given that neither of the two main screen devices and neither of the
standard print devices support translucency, the subject line looks
correct to me: the problem surely lies in the assumptions made in ggplot2.
> * export to a device that does support transparency (eg. pdf)
> * use a solid fill colour : + stat_smooth(method="lm", fill="grey50")
> On 7/3/07, Stephane Cruveiller <scruveil at genoscope.cns.fr> wrote:
>> Dear R-Users,
>> I recently gave a try to the nice package ggplot2. Everything went
>> well until I tried to add a smoother (using lm method for instance).
>> On the graphic device the regression line is displayed but not confidence
>> intervals as it should be (at least on ggplot website). I tried to do
>> the job on
>> both MS winXP and Linux i586: same result. Did anyone encountered this
>> problem? Did I miss something?
>> My R version is 2.4.1.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help