[R] possible bug in ggplot2 v0.5.2???
hadley wickham
h.wickham at gmail.com
Wed Jul 4 09:37:33 CEST 2007
On 7/4/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> 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
> on
> Linux i586.
Well my dictionary defines transparent as "allowing light to pass
through so that objects behind can be distinctly seen" which I believe
applies here (ie. stained glass windows and blue points with alpha 0.5
are both transparent). What does your dictionary say?
> 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.
I am confused by your implication that windows (prior to XP) does not
support translucency. Perhaps it is not supported at the operating
system level, but it has certainly been available at the application
level for a very long time.
> 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.
The features of the windows and X11 devices clearly lag behind the
quartz and pdf devices. I can program for the lowest common
denominator or I can use modern features that support the tasks I am
working on. I choose the later, and it is certainly your prerogative
to declare that a bug in me.
Hadley
More information about the R-help
mailing list