I am searching for a simple way to plot a photographic JPEG image on a graphics device in R.
For example the following using the raster
package appears to ignore the colour attributes in the image. I want to reproduce the photograph in its original colours:
library(raster)
library(rgdal)
myJPG <- raster("colourfulPic.jpg")
plot(myJPG) ## Recolours JPEG;
I have discovered that the package rimage
has recently been archived and appears to no longer be recommended for use (see here), if it, indeed, ever did what I need.
Similarly the EBImage
for BioConductor, which may also possibly work, is not built for 64 bit Windows, and unfortunately I need this architecture.
Please tell me I missing something very obvious in base graphics?