R:当我想添加aes(x,y)时无法识别对象

When I load tidyverse, everything is fine. When I start with ggplot(iris), it gives me the empty graph (which is normal). However when I want to code the line: ggplot(iris, aes( x= Petal.Lenght,y=Sepal.lenght)) it doesn't recognize the object...ggplot(iris)

看起来是这样的:

ggplot(iris, aes(x=Sepal.Lenght,y=Petal.Lenght))
# Error in FUN(X[[i]], ...) : object 'Sepal.Lenght' not found
评论