Skip to content

Error when creating simple graphs in WSL Ubuntu 22.04 #6751

@nereavl

Description

@nereavl

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions