library("ggimage")
<- data.frame(x = rnorm(10),
df 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))
11 geom_i
11.1 geom_image
Package
ggimage (Yu 2023)
Description
Visualise data through images.
Understandable aesthetics
image
See also
Example
11.2 geom_icon
11.2.1 Example
library("ggimage")
<- data.frame(x = rnorm(10),
df y = rnorm(10))
$icon = sample(c('ios-power', 'ios-wifi', 'ios-pie'), 10, replace=TRUE)
dfggplot(df, aes(x, y)) + geom_icon(aes(image=icon))