Re: [R] adding bmp/jpg/gif to an existing plot

2009-12-04 Thread baptiste auguie
Hi, If you can first convert the image to ppm format, the pixmap package has an addlogo function that can do just what you want, x - read.pnm(system.file(pictures/logo.ppm, package=pixmap)[1]) plot(1:10,1:10) addlogo(x, px=c(2, 4), py=c(6, 8), asp=1) One could probably get inspiration from the

[R] adding bmp/jpg/gif to an existing plot

2009-12-03 Thread Cézar Freitas
Hi, all. I searched a lot at mailing list, installed EBImage and gtk packages, but I couldn't make this simple work: How to add a image file (jpg or bmp ou gif) to an existing plot window (not plot over the image), like the code below (pseudo function add.image): plot(1:10,1:10,main=test)

Re: [R] adding bmp/jpg/gif to an existing plot

2009-12-03 Thread Prof Brian Ripley
Look at the R-devel development version of R o The graphics engine now supports rendering of raster (bitmap) images, though not all graphics devices can provide (full) support. Packages providing graphics devices (e.g., Cairo, RSvgDevice, cairoDevice) will need to

Re: [R] adding bmp/jpg/gif to an existing plot

2009-12-03 Thread Greg Snow
Of Cézar Freitas Sent: Thursday, December 03, 2009 7:24 AM To: r-help@r-project.org Subject: [R] adding bmp/jpg/gif to an existing plot Hi, all. I searched a lot at mailing list, installed EBImage and gtk packages, but I couldn't make this simple work: How to add a image file (jpg or bmp ou

Re: [R] adding bmp/jpg/gif to an existing plot

2009-12-03 Thread Frank E Harrell Jr
Greg Snow wrote: Look at the subplot function in the TeachingDemos package. A copy of subplot is in the Hmisc package thanks to Greg. -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University

[R] adding bmp/jpg/gif to an existing plot

2009-12-03 Thread Cézar Freitas
Hi, all. I searched a lot at mailing list, installed EBImage and gtk packages, but I couldn't make this simple work: How to add a image file (jpg or bmp ou gif) to an existing plot window (not plot over the image), like the code below (pseudo function add.image): plot(1:10,1:10,main=test) image =