Facetting fails with "undefined columns selected" error for non-standard variable names #1067
Comments
you might want to have a look at: |
Thanks Samer. It was the fact that backticks work in aesthetics that led me to believe that they should work in facets too. For the record, using the standardised version of the column name doesn't work either. ggplot(DF, aes(x, y)) +
geom_point() +
facet_wrap(~ z.z) If no proper fix is possible (that is, making non-standard names correctly draw facets), then It would be nice to provide a more informative error message. For example, at the start of library(assertive)
assert_all_are_valid_variable_names(attr(terms(facets), "term.labels")) (The case for A note in the |
To reproduce:
The text was updated successfully, but these errors were encountered: