데이터 홍채와 함께 다른 종과 다른 종유석 종점의 색으로 싶습니다. 이 명령은! = 연산자로 작동하지만 = 연산자는 작동하지 않습니다.ggplot2 : 에일 매핑에서 공식 사용
내가 가지고 두 색상 :! 나는 단지 하나 개의 색상이
ggplot(iris)+ geom_point(aes(x=Sepal.Length,y=Petal.Length,**color=Species!="setosa"**))
:
ggplot(iris)+ geom_point(aes(x=Sepal.Length,y=Petal.Length,**color=Species="setosa"**))
"="대신 "="을 사용해보십시오. 도움말 페이지는 '? ==' –
@ TonyLadson에게 감사드립니다! –