avli avli - 1 year ago 83
R Question

What is the simplest way to display raster image in R?

I'm working with TIFF images in R. I load images as

img <- readTIFF("someimage.tiff")

I'm manipulating with
array then and want to see the results. One of the options is use
function to store the image on disk and open it with image viewer. However I wish to have some simple way to display images inside R. What would you recommend?

Answer Source

here's one option:

img <- readTIFF(system.file("img", "Rlogo.tiff", package="tiff"))
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download