We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to be able to put expressions in faceted formulae instead of just column names.
For example, I'd like to be able to facet by a "cut" of a column:
ggplot(mtcars, aes(qsec, mpg)) + geom_point() + facet_wrap(~ cut(wt, c(0, 2, 4, 6)))
rather than needing to do something like:
mtcars$cut <- cut(mtcars$wt, c(0, 2, 4, 6)) ggplot(mtcars, aes(qsec, mpg)) + geom_point() + facet_wrap(~ cut)
The text was updated successfully, but these errors were encountered:
Great feature. Syntax-wise, how would you handle the overloading of + as both an arithmetic operation and a separator in the formula?
+
Sorry, something went wrong.
It would have to be handled the same way as modelling formulas — if you want addition you need to surround in I()
I()
First attempt in #1722. Will be shelved until some infrastructure changes take place.
#1722 has now been ported to the new facet implementation in #1633
No branches or pull requests
I'd like to be able to put expressions in faceted formulae instead of just column names.
For example, I'd like to be able to facet by a "cut" of a column:
rather than needing to do something like:
The text was updated successfully, but these errors were encountered: