geom_image
Package
ggimage (Yu 2023)
Description
Visualise data through images.
Understandable aesthetics
image
See also
geom_emoji
Example
library("ggimage")
df <- data.frame(x = rnorm(10),
y = rnorm(10),
image = sample("https://www.r-project.org/logo/Rlogo.png",
size=10, replace = TRUE))
ggplot(df, aes(x, y)) + geom_image(aes(image=image))
geom_icon
Example
library("ggimage")
df <- data.frame(x = rnorm(10),
y = rnorm(10))
df$icon = sample(c('ios-power', 'ios-wifi', 'ios-pie'), 10, replace=TRUE)
ggplot(df, aes(x, y)) + geom_icon(aes(image=icon))
Yu, Guangchuang. 2023.
Ggimage: Use Image in ’Ggplot2’.
https://CRAN.R-project.org/package=ggimage.