Skip to content

Ephemeral theme arg#484

Merged
grantmcdermott merged 5 commits intomainfrom
theme_arg
Sep 17, 2025
Merged

Ephemeral theme arg#484
grantmcdermott merged 5 commits intomainfrom
theme_arg

Conversation

@grantmcdermott
Copy link
Copy Markdown
Owner

Closes #442

MWE

pkgload::load_all('~/Documents/Projects/tinyplot')
#> ℹ Loading tinyplot
plt(bill_dep ~ bill_len | species, data = penguins)

plt(bill_dep ~ bill_len | species, data = penguins, theme = 'clean')
plt_add(type = 'lm')

plt(bill_dep ~ bill_len | species, data = penguins)

Created on 2025-09-16 with reprex v2.1.1

@zeileis
Copy link
Copy Markdown
Collaborator

zeileis commented Sep 17, 2025

Very nice, thanks for adding this.

I played around a bit how this interacts with tinyplot_add() or setting add = TRUE. I wasn't able to create weird or unexpected results, though, even when using different themes in the first and in the added plot. 👍

@grantmcdermott
Copy link
Copy Markdown
Owner Author

Super, thanks for testing @zeileis! I'll add a test when I get a sec and then merge (the failing altdoc action can be ignored).

@grantmcdermott grantmcdermott merged commit 825647f into main Sep 17, 2025
3 checks passed
@grantmcdermott grantmcdermott deleted the theme_arg branch September 17, 2025 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ephemeral themes via plt(..., theme = ...)?

2 participants