[R] Loading an image/picture (png/jpeg/...) to screen...
Greg.Snow at imail.org
Mon Jun 7 22:30:00 CEST 2010
Once you have your image displayed in a plot, look at the updateusr function in the TeachingDemos package for a way to modify the coordinate system to what you want so that using locator() gives the results that you want.
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of oliver
> Sent: Sunday, June 06, 2010 5:46 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Loading an image/picture (png/jpeg/...) to screen...
> how can I load an external picture/image file to screen?
> I want to use locator() then to get coordinates of that picture...
> ...in other words I want to use R to do some measurements on a picture.
> Therefore I need to load the image into R display,
> and that displaying needs to work together with locator().
> How to do it best?
> At the moment I need to be able to read in *.png files,
> but if *.jpeg or other formats also will be supporttzed, this would be
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help