All - I'm creating some plots in R that I would like to overlay on images that are created outside of R. I've used "image" before to plot image-like data within R, and have added vector plots on top of them, but I can't find a way to read in an external bitmap file into R and use that. Currently the external files are .png's, but I could generate a few other types, if something else might be easier to import. Thanks, -Mike
See package pixmap and Paul Murrel's talk from useR!2006: http://www.r-project.org/useR-2006/Slides/Murrell.pdf Uwe Ligges Michael Wolosin wrote:> All - > > I'm creating some plots in R that I would like to overlay on images that > are created outside of R. > > I've used "image" before to plot image-like data within R, and have added > vector plots on top of them, but I can't find a way to read in an external > bitmap file into R and use that. > > Currently the external files are .png's, but I could generate a few other > types, if something else might be easier to import. > > Thanks, > -Mike > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Following the posting guide suggests RSiteSearch("bitmap") which leads to http://finzi.psych.upenn.edu/R/Rhelp02a/archive/28384.html and http://finzi.psych.upenn.edu/R/Rhelp02a/archive/65284.html On Thu, 28 Dec 2006, Michael Wolosin wrote:> All - > > I'm creating some plots in R that I would like to overlay on images that > are created outside of R. > > I've used "image" before to plot image-like data within R, and have added > vector plots on top of them, but I can't find a way to read in an external > bitmap file into R and use that. > > Currently the external files are .png's, but I could generate a few other > types, if something else might be easier to import. > > Thanks, > -Mike > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >Charles C. Berry (858) 534-2098 Dept of Family/Preventive Medicine E mailto:cberry at tajo.ucsd.edu UC San Diego http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0717
http://bioconductor.org/packages/2.0/bioc/html/EBImage.html This will read/write about 95 image formats into R, all those supported by ImageMagick and provide many image processing filters. If Windows is your platform, this version will work on Windows as well (the version release in Bioconductor 1.9 will not). It is a development version and even though it shows 1.9.12 now, it is already 1.9.14 on the SVN with many bug fixes. Go grab it, if using Windows, let me know I will send you a binary if it does not appear on the bioconductor page -- it takes several days until a new build. Best, Oleg On 28/12/06, Michael Wolosin <msw10@duke.edu> wrote:> > All - > > I'm creating some plots in R that I would like to overlay on images that > are created outside of R. > > I've used "image" before to plot image-like data within R, and have added > vector plots on top of them, but I can't find a way to read in an external > bitmap file into R and use that. > > Currently the external files are .png's, but I could generate a few other > types, if something else might be easier to import. > > Thanks, > -Mike > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Apparently Analagous Threads
- changing the value of a variable from inside a function
- Autogenerated png, bitmap images
- [Rdev] any way to generate "bitmap" (tif, jpeg, png etc) files in R CMD BATCH
- [Rdev] any way to generate "bitmap" (tif, jpeg, png etc) files in R CMD BATCH
- Read and show Bitmap Images