Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我从 IRIS 数据中提取了值,这个数据中的物种是 Setosa、Versicolor 和 virginica。现在我想制作一个花瓣长度的qq图,但我希望它彼此分开。所以就像我想要 setosa 的花瓣长度,然后只是杂色。
我试过 qqnorm(setosa$Petal.length)。我在网上找不到?
对于一个物种“setosa”:
qqnorm(iris[iris$Species=="setosa","Petal.Length"])
否则,对于所有物种:
par(mfrow=c(2,2)) lapply(unique(iris$Species), function(x){ qqnorm(iris[iris$Species==x,"Petal.Length"],main=x) })