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
Korean variable name is not working with ggplot2 #2665
Comments
Hi, I feel this part is not really reproducible:
So, all I can do is only to guess, but maybe the names of your data.frame are encoded in If it is library(ggplot2)
d <- tibble::tibble(
忍 = c(1, 1, 2, 2),
者 = c(1, 2, 1, 2)
)
# OK
ggplot(d, aes(忍, 者)) +
geom_point() names(d) <- enc2utf8(names(d))
# Error
ggplot(d, aes(忍, 者)) +
geom_point()
#> Error in FUN(X[[i]], ...): object '忍' not found Created on 2018-05-27 by the reprex package (v0.2.0). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@statkclee But, I feel this is a bug and should be fixed on rlang's side. |
@lionel- can you please look into for ggplot2 release? |
I think that should do it, could you please try with dev rlang? |
Thanks! I confirmed this code works now w/ dev rlang: #2665 (comment) @statkclee Could you confirm your code works as well? |
Yes, it works... Thank you... @yutannihilation @lionel- @hadley |
🎉 |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Korean variable name is not working
The dataframe has some Korean variable names. The variable name can be used normally with dplyr verbs, but variable name can not be recognized on the
ggplot
.Whenever I version up(eg, 3.4.4 → 3.5.0 and previous versions), I experienced similar problems.
Created on 2018-05-27 by the reprex package (v0.2.0).
Session info
The text was updated successfully, but these errors were encountered: