11  geom_i

11.1 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))

11.2 geom_icon

11.2.1 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))