-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Error: data
must be uniquely named but has duplicate elements
#2641
Comments
I thought it might be related to using same facet name as aesthetic, but that doesn't appear to be the case: library(ggplot2)
df <- data.frame(x = 1:3, colour = c("red", "blue", "red"))
ggplot(df, aes(x, x, colour = colour)) +
geom_point() +
facet_wrap(~ colour) Created on 2018-05-20 by the reprex package (v0.2.0). |
Whatever it is it's already fixed in the dev version of ggforce. I looked at svdvis and there they're passing a data frame that has two different columns called library("ggplot2")
df <- data.frame(x = 1:3, group = 1:3, group = 1:3)
names(df) <- c("x", "group", "group")
ggplot(df, aes(x, x)) +
geom_point()
#> Error: `data` must be uniquely named but has duplicate columns Created on 2018-05-20 by the reprex package (v0.2.0). In preparing data for plotting sometimes ggplot creates a |
The problem still persist, is there any solution? |
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/ |
We need a simple reprex for this just to double check it's revealing real problems. Looks like ggforce might be simplest?
The text was updated successfully, but these errors were encountered: