Hi Sagar,
>Hi Divin, I was looking to solve the same problem, were able to figure
>how to fix this ?
I've had a very quick look at Divin's original example (which I've
attached in case anyone has deleted it) and I think I've got a simple
solution. Try replacing the call to annotation_custom(r) with:
annotation_raster(img,-Inf,Inf,-Inf,Inf,interpolate=TRUE)
I think that does it. On a superficial comparison with the seine.png
image, it looks right, but the alteration to the aspect ratio and
fuzziness makes it a bit harder to tell.
It also means you don't need to convert the image to a rastergrob either.
Ron.