yaweige/ggpcp

Error: Must subset elements with a valid subscript vector

aloy opened this issue · 1 comments

aloy commented

I get an error when I try to run your example:

library(ggplot2)
library(dplyr)
data(mtcars)
mtcars %>%
mutate(cyl = factor(cyl),
      vs = factor(vs),
      am = factor(am),
      gear = factor(gear)) %>%
 ggplot(aes(vars = vars(cyl, vs:gear))) +
 geom_pcp(aes(color = vs))
Error: Must subset elements with a valid subscript vector.
x The subscript has the wrong type `quosures`.
ℹ It must be numeric or character.
Run `rlang::last_error()` to see where the error occurred.

This should be resolved back to Feb after reacting to the tidyselect update? This works well for me now