[R] Loading an image/picture (png/jpeg/...) to screen...

baptiste auguie baptiste.auguie at googlemail.com
Sun Jun 6 14:44:20 CEST 2010


Hi,

Try this,

library(png)
example(readPNG)

HTH,

baptiste

On 6 June 2010 13:46, oliver <oliver at first.in-berlin.de> wrote:
> Hello,
>
>
> 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 fine.
>
> ______________________________________________
> R-help at r-project.org 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.
>



More information about the R-help mailing list