The icon geom, like the point geom, is used to create scatterplots. Icons are specified by filepaths into an image file.
1 2 3 |
1 2 3 4 5 6 7 8 | library(dplyr)
library(ggplot2)
data(tidyverse_downloads)
downloads_with_icon <- tidyverse_downloads %>%
mutate(file_path = system.file("icons",paste0(package,".png"),package = "ggicons"))
ggplot(downloads_with_icon, aes(x = Jan2017, y = change_percentage, file_path = file_path)) +
geom_icon()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.