【发布时间】:2020-04-17 12:51:37
【问题描述】:
如何使用填充快速绘制绘图(即qplot)?
我试过了
iris %>% qplot(Sepal.Length, fill = Species)
Error in FUN(X[[i]], ...) : object 'Sepal.Length' not found
和
iris %>% qplot(seq_along(Sepal.Length), Sepal.Length, fill = Species)
Error in FUN(X[[i]], ...) : object 'Sepal.Length' not found
但没有运气。
【问题讨论】:
-
qplot(Sepal.Length, fill = Species, data=iris) -
@Edward 抱歉,我问了一个模棱两可的问题。我追求相当于
qplot(seq_along(iris$Sepal.Length), iris$Sepal.Length),但以物种为填充。非常感谢您的帮助! -
没问题。你的问题总是具有挑战性。保持大脑工作。 ;)