[R] Can't plot transparency images in R-3.1.0

2014-04-25 Thread Fong Chun Chan
Hi all, I recently upgraded to R-3.1.0 from R-3.0.2. Things seem to be fine, but when trying to plot a ggplot image with transparency, I get the following issue: Warning message: In grid.Call.graphics(L_polygon, x$x, x$y, index) : semi-transparency is not supported on this device: reported only

Re: [R] Can't plot transparency images in R-3.1.0

2014-04-26 Thread Fong Chun Chan
PM, Fong Chun Chan wrote: > >> Hi all, >> >> I recently upgraded to R-3.1.0 from R-3.0.2. Things seem to be fine, but >> when trying to plot a ggplot image with transparency, I get the following >> issue: >> >> Warning message: >> In grid.

[R] R Cairo Installation - Cannot find cairo.h!

2014-04-28 Thread Fong Chun Chan
Hi, I am trying to get the R package Cairo installed. I've been successfully in building the latest version of Cairo library (1.12.16, http://cairographics.org/) from source and installed into ~/usr/local using ./configure --prefix=/home/fong/usr/local I set the my CAIRO_LIBS and CAIRO_CLAGS env

Re: [R] R Cairo Installation - Cannot find cairo.h!

2014-04-28 Thread Fong Chun Chan
nd -I for > include directories). Anyway, as I said, 1. install cairo-devel using > your package manager, and 2. remove the two lines from .bashrc. > > Peter > > > On Mon, Apr 28, 2014 at 12:26 PM, Fong Chun Chan > wrote: > > Hi, > > > > I am trying

Re: [R] R Cairo Installation - Cannot find cairo.h!

2014-04-28 Thread Fong Chun Chan
28, 2014 at 7:50 PM, Peter Langfelder < peter.langfel...@gmail.com> wrote: > On Mon, Apr 28, 2014 at 7:14 PM, Fong Chun Chan > wrote: > > Hi Peter, > > > > Thanks for the reply. I don't have access to the package manager > > unfortunately as I am working

Re: [R] R Cairo Installation - Cannot find cairo.h!

2014-04-29 Thread Fong Chun Chan
/usr/include/libpng15 -I/usr/include/libdrm > -lcairo > > There are many more -I directives than what you had, but I'm not sure > if all of it is really necessary. if your configure or compilation > fail, it is something to keep in mind. > > HTH, > > Peter > &g

Re: [R] R Cairo Installation - Cannot find cairo.h!

2014-04-29 Thread Fong Chun Chan
~/.bashrc as that was likely unnecessary step as set due to confusion. After doing this, running install.packages(Cairo) worked. Hope this helps anyone having this issue. On Tue, Apr 29, 2014 at 9:55 AM, Fong Chun Chan wrote: > Hi Peter, > > Unfortunately neither of the modifications t

[R] Installation of R-3.0.3

2014-03-18 Thread Fong Chun Chan
Hi, I am trying to install the newest version of R-3.0.3 from source and I've been successful in the configuration using this command: ./configure --enable-R-shlib --with-x=no --prefix=/home/fcchan/usr/local/R-3.0.3 When I run make, I run into this issue: gcc -std=gnu99 -I../../src/extra/zlib -

[R] Rscript, hashbang, and arguments

2011-03-14 Thread Fong Chun Chan
Hi, I have a bunch of R scripts which have the hash bang !/usr/bin/env Rscript and I typically run these scripts by passing in some parameters like this: ./nameOfRScript arg1 arg2 ... I know Rscript has the option to run in --vanilla. Where exactly do I insert the --vanilla option? When I do s

[R] Using SVG in R

2011-09-09 Thread Fong Chun Chan
Hi, I've been trying to use SVG in R using the function svg, but all my my graphics end up with the text being very small to be point you can't even see them. I've attached a screenshot of what the output for a histogram looks like. Here is my code: CairoSVG('file/location') hist() dev.off(

Re: [R] Using SVG in R

2011-09-09 Thread Fong Chun Chan
s a general life question, why in a question about SVG files would you > send us a PNG screenshot rather than the SVG itself? Can SVG's not be sent > over the mailing list? > > Michael > > > On Fri, Sep 9, 2011 at 5:19 PM, Fong Chun Chan wrote: > >> Hi, >> &

Re: [R] Using SVG in R

2011-09-09 Thread Fong Chun Chan
> for someone more knowledgeable to come along, but do you get the same > problem using the regular svg() command? > > Michael > > > On Fri, Sep 9, 2011 at 5:40 PM, Fong Chun Chan wrote: > >> For convenience on my end since the plot was generated on a server and >> having to

[R] Cairo creates italized plots?

2011-10-19 Thread Fong Chun Chan
Hi, Has anyone else run into this weird behaviour where the text in the plots created using Cairo are always italicized. For example, library(Cairo) Cairo(file='cairo_created', type='pdf', dpi=100) plot(1:10) dev.off() This produces the following attached 'cairo_created.pdf' graph. Notice how