[R] semi-transparency not supported in devel R? "alpha" cannot be specified in qplot()

Yihui Xie xie at yihui.name
Sun Jan 22 12:42:52 CET 2012


When you build R by yourself, you need to make sure all its
dependencies are installed; I usually use this in Ubuntu:

sudo apt-get build-dep r-base-dev

As Prof Ripley said, your problem is likely to be a missing cairo
package in your system (something like libcairo2-dev, I guess).

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Sat, Jan 21, 2012 at 4:39 PM, Tengfei Yin <yintengfei at gmail.com> wrote:
> Hi dear all,
>
> In my laptop(ubuntu 11.10 64bit), I maintained a released R (2.14) and a
> developmental R, I can specify qplot(..., alpha = ) in R 2.14 , but when I
> try to use transparency in developmental R, I got a warning message and the
> plot is clearly not I want.
>
> minimal example:
>> qplot(data = mtcars, x = mpg, y = cyl, alpha = cyl)
> Warning message:
> In grid.Call.graphics(L_points, x$x, x$y, x$pch, x$size) :
>  semi-transparency is not supported on this device: reported only once per
> page
>> sessionInfo()
> R Under development (unstable) (2012-01-21 r58156)
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
> locale:
>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
>  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
>  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
>  [7] LC_PAPER=C                 LC_NAME=C
>  [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets  methods
> [8] base
>
> other attached packages:
> [1] ggplot2_0.8.9 proto_0.3-9.2 reshape_0.8.4 plyr_1.7.1
>
> loaded via a namespace (and not attached):
> [1] digest_0.5.1
>
>
> I have no idea what happened here, because if I miss some important system
> dependencies, why it's still working in R 2.14?
>
> Any suggestions or possible solution will be really appreciated. Thanks
>
> Tengfei
>
> --
> Tengfei Yin
> MCDB PhD student
> 1620 Howe Hall, 2274,
> Iowa State University
> Ames, IA,50011-2274
>
>        [[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.



More information about the R-help mailing list