Display custom image as geom_point [duplicate]
This question already has an answer here: How to use an image as a point in ggplot? 3 answers Is it possible to display custom image (say png format) as geom_point in R ggplot? library(png) pic1 <- readPNG("pic1.png") png("Heatmap.png", units="px", width=3200, height=3200, res=300) ggplot(data_frame, aes(medium, day, fill = Transactions)) + geom_tile(colour="white") + facet_grid(dime3_year~dime3_month) + scale_fill_gradient(high="blue",low="white") + theme_bw() + geom_point(aes(dime3_channel, day, size=Conv,alpha=Conv,image=(annotation_raster(pic1,xmin=0,ymin=0,xmax=5,ymax=5)),color="firebrick