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
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(
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
3 matches
Mail list logo