tests/testthat/_snaps/4.0/theme.md

modifying theme element properties with + operator works

Code
  theme_grey() + "asdf"
Condition
  Error in `method(+, list(ggplot2::theme, class_any))`:
  ! Can't add `"asdf"` to a theme object.


Try the ggplot2 package in your browser

Any scripts or data that you put into this service are public.

ggplot2 documentation built on Sept. 11, 2025, 9:10 a.m.