Is it possible in R (ggplot2) to add an image to a chart with log y-axis. I mean:
ggplot(mtcars, aes(x=mpg, y=disp))+
geom_line()+
coord_trans(y="log2")
If Yes - How?
For example it doesn't work:
image <- readPNG('/myFolder/car.png')
ggplot(mtcars, aes(x=mpg, y=disp))+
geom_line()+
coord_trans(y="log2")+
annotation_raster(image, ymin = 100, ymax= 200, xmin = 15, xmax =
20,interpolate = FALSE)
Error: annotation_raster only works with Cartesian coordinates