用group整體擬合后無法再顯示顏色
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)
這一串代碼運行后還是無法顯示不同顏色的線,這是什么原因?
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)
這一串代碼運行后還是無法顯示不同顏色的線,這是什么原因?
2020-01-15
舉報
2020-01-15
col=factor()寫錯了