[R] Using grImport to create a watermark

2012-12-28 Thread Thomas Adams - NOAA Federal
Hi… I want to use grImport to create a watermark on a plot() using the methods Paul Murrell describes here: http://cran.r-project.org/web/packages/grImport/vignettes/import.pdf (page 28). I can essentially reproduce this manually at the R prompt, and independently I can use grid.picture(…)

Re: [R] Using grImport to create a watermark

2012-12-28 Thread Prof Brian Ripley
I suspect you need a device supporting translucency: PostScript does not and hence postscript() cannot. Try the pdf() device (and convert the output if you need it). On 28/12/2012 17:23, Thomas Adams - NOAA Federal wrote: Hi… I want to use grImport to create a watermark on a plot() using

Re: [R] Using grImport to create a watermark

2012-12-28 Thread Thomas Adams - NOAA Federal
Prof Ripley, I see that now; I can get the transparency to work, but even with using pdf() my plot still does not draw if I first use: grid.picture(noaalogo,distort=**FALSE,width=0.5,x=0.50,y=0.50) grid.rect(gp=gpar(fill=rgb(1,**1,1,0.9))) Regards, Tom On Fri, Dec 28, 2012 at 1:55 PM, Prof