Skip to content

Add empty = <logical> argument#167

Merged
grantmcdermott merged 3 commits intomainfrom
empty_other
Jul 15, 2024
Merged

Add empty = <logical> argument#167
grantmcdermott merged 3 commits intomainfrom
empty_other

Conversation

@grantmcdermott
Copy link
Copy Markdown
Owner

Closes #166.

Allows users to produce empty plots, but still honour the type of legend that would have been produced by non-point type plots.

tinyplot::plt(Sepal.Length ~ Petal.Length | Species, data = iris, type = "l", empty = TRUE)

tinyplot::plt(~Petal.Length | Species, data = iris, type = "density", fill = "by", empty = TRUE)

Created on 2024-07-15 with reprex v2.1.0

@grantmcdermott grantmcdermott merged commit f8706af into main Jul 15, 2024
@grantmcdermott grantmcdermott deleted the empty_other branch July 15, 2024 19:11
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.

type = "n" limits legend options

1 participant