How to use an image as a legend key glyph?
问题 I am plotting a scatterplot in ggplot with icons and I am stuck with producing a legend using the icons. THere is a function in the ggimage documentation called "draw_key_image" but I don't really understand how to use it or the required arguments. The documentation says "data = A single row data frame containing the scaled aesthetics to display in this key" but this does not help me at all! https://www.rdocumentation.org/packages/ggimage/versions/0.2.7/topics/draw_key ##Hopefully