
a <- mpg
ggplot(data = a,aes(x=displ,y=hwy))+
geom_point()+
geom_smooth(method = 'loess',se = F)
ggplot(data = a,aes(x=displ,y=hwy))+
geom_point()+
geom_smooth(method = 'loess',se = F,aes(group=drv))
ggplot(data = a,aes(x=displ,y=hwy,color=drv))+
geom_point()+
geom_smooth(method = 'loess',se = F)
ggplot(data = a,aes(x=displ,y=hwy))+
geom_point(aes(color=drv))+
geom_smooth(method = 'loess',se = F)