I am constantly encountering an error while trying to make very simple graphs on WSL Ubuntu 22.04.
library(ggplot2)
data <- data.frame(name=c("A","B","C","D","E") , value=c(3,12,5,18,45))
ggplot(data, aes(x=name, y=value)) +
geom_bar(stat = "identity")
Error in ggplot(data, aes(x = name, y = value)) + geom_bar(stat = "identity") :
non-numeric argument to binary operator
In addition: Warning message:
Incompatible methods ("Ops.S7_object", "+.gg") for "+"
I am running R 4.5.2 and ggplot2 4.0.1
Thanks!
I am constantly encountering an error while trying to make very simple graphs on WSL Ubuntu 22.04.
I am running R 4.5.2 and ggplot2 4.0.1
Thanks!
Hi,
Fully purging ggplot2 and S7 from my renv cache and doing a clean reinstall of ggplot2 did the trick. I though i did that before commenting yesterday, but maybe not.