用group整體擬合后無(wú)法再顯示顏色
ggplot(airquality,aes(Wind,Temp,
? ? ? ? ? ? ? ? ? ? ? col_factor(Month)))+
? geom_point()+
? stat_smooth(method="lm",se=FALSE,aes(group=1))+
? stat_smooth(method="lm",se=FALSE)
這一串代碼運(yùn)行后還是無(wú)法顯示不同顏色的線,這是什么原因?
ggplot(airquality,aes(Wind,Temp,
? ? ? ? ? ? ? ? ? ? ? col_factor(Month)))+
? geom_point()+
? stat_smooth(method="lm",se=FALSE,aes(group=1))+
? stat_smooth(method="lm",se=FALSE)
這一串代碼運(yùn)行后還是無(wú)法顯示不同顏色的線,這是什么原因?
舉報(bào)
2020-01-15
col=factor()寫錯(cuò)了