Question: 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](http://r.789695.n4.nabble.com/Asking-About-packages-quot-rimage-quot-td4395719.html)), 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?

---

Answer: 
Instead of `rimage`, perhaps use the package `ReadImages`:

```
library('ReadImages')
myjpg <- read.jpeg('E:/bigfoot.jpg')
plot(myjpg)

```
`raster` Has a built-in function for this called `plotRGB` 

```
library(raster)  
myJPG <- stack("colourfulPic.jpg")  
plotRGB(myJPG)  

```