Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. qplot(displ, hwy, data = mpg, color=drv, geom = c("point", "smooth")) - kolorowy z zacieniem i krzywa
  2.  
  3. qplot(drv,hwy,data=mpg,geom="boxplot") - BOXPLOT
  4.  
  5. g <- ggplot(mpg,aes(displ,hwy)) - UTWORZENIE
  6. g+geom_point()+geom_smooth() - nieliwniowe
  7. g+geom_point()+geom_smooth(method="lm") - liniowe
  8.  
  9. g+geom_point()+geom_smooth(method="lm") + facet_grid(.~drv) - podzielone na rodzaje z drv
  10. g+geom_point()+geom_smooth(method="lm") + facet_grid(.~drv)+ ggtitle("Swirl Rules!") - PLUS TYTUL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement