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

From: Tengfei Yin <yintengfei_at_gmail.com>
Date: Sun, 22 Jan 2012 16:40:30 -0600

Hi Prof.Brian Ripley and Yihui,

Thanks for the suggestions on the R-help list. and sorry for posting on the wrong list.

For Yihui's question, I double checked, I already have the dependencies you mentioned in the email and also other comprehensive list of ubuntu packages required for building R, with courtesy of Hervé Pagès mentioned in other mailing list.

For Prof. Brian Ripley's suggestion:

for R 2.14, after qplot, dev.cur() return X11cairo, but in R-svn, it returns just X11.

I do forget to use --with-cairo when configure it, but then I tied

./configure --enable-R-shlib --with-cairo --with-libpng --with-jpeglib  --enable-memory-profiling

I got following message
...
R is now configured for x86_64-unknown-linux-gnu

  Source directory: .
  Installation directory: /usr/local

  C compiler:                gcc -std=gnu99  -g -O2
  Fortran 77 compiler:       gfortran  -g -O2

  C++ compiler:              g++  -g -O2
  Fortran 90/95 compiler: gfortran -g -O2   Obj-C compiler:
  Interfaces supported:      X11, tcltk
  External libraries:        readline
  Additional capabilities:   PNG, JPEG, NLS, cairo
  Options enabled:           shared R library, shared BLAS, R profiling,
memory profiling, Java

  Recommended packages: yes

after normal make and sudo make install, then in R, when I try to use alpha in qplot, I still got the same warning, and dev.cur() still return X11.

Thanks and happy Chinese new year.

Tengfei

On Sun, Jan 22, 2012 at 5:42 AM, Yihui Xie <xie_at_yihui.name> wrote:

> 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.
>

-- 
Tengfei Yin
MCDB PhD student
1620 Howe Hall, 2274,
Iowa State University
Ames, IA,50011-2274
Homepage: www.tengfei.name

	[[alternative HTML version deleted]]


______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Sun 22 Jan 2012 - 22:43:02 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Mon 20 Feb 2012 - 02:40:19 GMT.

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

list of date sections of archive