Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facet_wrap ~var errors but "var" works #168

Open
tdhock opened this issue Nov 23, 2024 · 0 comments
Open

facet_wrap ~var errors but "var" works #168

tdhock opened this issue Nov 23, 2024 · 0 comments

Comments

@tdhock
Copy link
Collaborator

tdhock commented Nov 23, 2024

at least we should have a better error message

> ggplot()+
+ facet_wrap(. ~ Species)+
+ geom_point(aes(
+ Sepal.Length, Petal.Length),
+ data=iris)
Erreur dans layout_base(data, vars, drop = drop) : 
  At least one layer must contain all variables used for facetting
> ggplot()+
+ facet_wrap("Species")+
+ geom_point(aes(
+ Sepal.Length, Petal.Length),
+ data=iris)
> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant