How to use an image as a point in ggplot?
Is there some way to use a specific small image as a point in a scatterplot with ggplot2. Ideally I will want to resize the images based on an variable.
Here’s an example:
library(ggplot2) p <- ggplot(mtcars, aes(wt, mpg)) p + geom_point(aes(size = qsec, shape = factor(cyl)))
So I basically want to know if there is a way to supply a specific image as the shape?