how to fix error in ggplot using geom_point null

334 Views Asked by At

pretty much what it says. i cant seem to create my scatterplot with the code that my prof basically hand fed to us

ggplot(df1, aes(mean, y)) +
geom_point() +
geom_errorbar(aes(ymin = lwr, ymax = upr, xmin = left, xmax = right))

the error message says this

Error in `geom_point()`:
! Problem while computing aesthetics.
ℹ Error occurred in the 1st layer.
Caused by error in `FUN()`:
! `data` must be uniquely named but has duplicate columns
0

There are 0 best solutions below