Re: [R] ggplot 2 semi-transparency error

2009-08-19 Thread ONKELINX, Thierry
ggplot2 has it's own build in wrapper-function to store plots: ggsave. p <- ggplot(a,aes(x=V1,colour=V2,fill=V2)) + geom_density(alpha = 0.2,xlim=c(-10,10),ylim=c(0,0.5)) ggsave(p, filename = "/alpha/dtc.pdf") HTH, Thierry

Re: [R] ggplot 2 semi-transparency error

2009-08-19 Thread Dieter Menne
rajesh j wrote: > > I used the command ggplot as follows... > p<-ggplot(a,aes(x=a$V1,colour=a$V2,fill=a$V2)) > p + geom_density(alpha = 0.2,xlim=c(-10,10),ylim=c(0,0.5)) > > when I say, > dev.print(device=postscript,file="/alpha/dct.pdf") > I get > > Warning message: > In grid.Call.graphics(

Re: [R] ggplot 2 semi-transparency error

2009-08-18 Thread Chris Friedl
I really don't know anything much about this but I tried "device=pdf" (no-quotes) and I got a pdf file with transparent plots. ?device.print gives help with some links to other devices hth rajesh j wrote: > > Hi, > I used the command ggplot as follows... > p<-ggplot(a,aes(x=a$V1,colour=a$V2,f