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

Can a non-symbol aes be accepted as a group key? #151

Open
yutannihilation opened this issue Jun 9, 2020 · 0 comments
Open

Can a non-symbol aes be accepted as a group key? #151

yutannihilation opened this issue Jun 9, 2020 · 0 comments
Labels

Comments

@yutannihilation
Copy link
Owner

yutannihilation commented Jun 9, 2020

(originally reported here: http://disq.us/p/29t184a)

library(gghighlight)
#> Loading required package: ggplot2

d1 <- data.frame(x = 1:10, y =  1:10)
d2 <- data.frame(x = 1:10, y = 11:20)

ggplot(mapping = aes(x, y)) +
  geom_line(data = d1, aes(colour = "d1")) +
  geom_line(data = d2, aes(colour = "d2")) +
  gghighlight()
#> Error: `quo` must be a quosure

Created on 2020-06-09 by the reprex package (v0.3.0)

The error occurs here:

gghighlight/R/gghighlight.R

Lines 280 to 281 in 7cc7b3d

# for group key, use symbols only, and don't include extra_vars
group_keys <- purrr::keep(mapping[group_cols], quo_is_symbol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant