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!