Skip to content

Should theme_void() include paper argument? ink argument not working with geoms #6251

Closed
@EvaMaeRey

Description

@EvaMaeRey

Thank you for the excellent work in the theming arena! 🚀

Just opening an issue to note that having the 'paper' argument for theme_void() might be misleading.

It also seems that the ink declaration doesn't seem to propagate to the geoms.

library(ggplot2)
p <- ggplot(mtcars, 
            aes(x = factor(cyl), 
                fill = factor(cyl))) +
  geom_bar() + 
  geom_point(stat = StatCount, size = 7) + 
  geom_tile(aes(y = -2, fill = NULL))

p +
  theme_void(ink = "plum", paper = "cornsilk", base_size = 18)

last_plot() + 
  theme(geom = element_geom(ink = "plum"))

Created on 2024-12-18 with reprex v2.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions