ggshroom

June 5, 2026 ยท View on GitHub

Tiny companion to ggimage for plotting fungal and fungus-like icons in ggplot2.

ggshroom depends on ggimage internally and wraps ggimage::geom_image() with a simple fungus-friendly interface.

ggshroom hex sticker

Installation

if (!requireNamespace("devtools", quietly = TRUE)) {
  install.packages("devtools")
}

devtools::install_github("gzahn/ggshroom")

ggimage will be installed automatically as a package dependency.


Citation

If you use ggshroom in a publication or public project and feel like citing it:

DOI

Example usage

library(ggplot2)
library(ggshroom)
# ggshroom uses ggimage::geom_image() under the hood

set.seed(1)

df <- data.frame(
  x = rnorm(50),
  y = rnorm(50),
  shroom = sample(list_shrooms(), 50, replace = TRUE)
)

ggplot(df, aes(x, y)) +
  geom_shroom(aes(image = shroom), size = 0.08) +
  theme_minimal()

You can also use a single fixed icon:

ggplot(df, aes(x, y)) +
  geom_shroom(image = "yeastbud", size = 0.08) +
  theme_minimal()

Available icons

Use list_shrooms() to see the bundled icon names, or browse the gallery below.

NameIcon
amanitaamanita
amfamf
blackblack
blueblue
brownbrown
chickenchicken
chytridchytrid
enokienoki
fusariumfusarium
morelmorel
neurosporaneurospora
physarumphysarum
purplepurple
rhizopusrhizopus
schizoschizo
shiitakeshiitake
whitewhite
yeast1yeast1
yeastbudyeastbud