Skip to content

Conversation

@grantmcdermott
Copy link
Owner

@grantmcdermott grantmcdermott commented Nov 20, 2025

Fixes #514

pkgload::load_all("~/Documents/Projects/tinyplot")
#> ℹ Loading tinyplot
foo = data.frame(x = 1:2, y = 1:2, grp = c("A", "B"))
class(foo) = c("foo", "data.frame")
tinyplot.foo = function(x, ...) {
  legend = list(title = 'New Title')
  plt(y ~ x | grp, data = x, legend = legend, ...)
}
plt(foo)

Created on 2025-11-19 with reprex v2.1.1

@grantmcdermott grantmcdermott marked this pull request as ready for review November 20, 2025 06:37
@grantmcdermott grantmcdermott merged commit af47a52 into main Nov 20, 2025
3 checks passed
@grantmcdermott grantmcdermott deleted the legend-lazyeval branch November 20, 2025 07:00
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.

Custom legends fail for new tinyplot.* S3 methods

2 participants