Guest User

Untitled

a guest
Jan 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #(1)散布図
  2. ggplot()+
  3. geom_point(data = iris, mapping = aes(x = Sepal.Length, y = Sepal.Width))
  4.  
  5. #(2)折れ線
  6. ggplot()+
  7. geom_line(data = iris, mapping = aes(x = Sepal.Length, y = Sepal.Width))
  8.  
  9. #(3)散布図+折れ線
  10. ggplot()+
  11. geom_point(data = iris, mapping = aes(x = Sepal.Length, y = Sepal.Width))+
  12. geom_line(data = iris, mapping = aes(x = Sepal.Length, y = Sepal.Width))
  13.  
  14. #(4)散布図 species毎に色分け
  15. ggplot()+
  16. geom_point(data = iris, mapping = aes(x = Sepal.Length, y = Sepal.Width , colour = Species))
Add Comment
Please, Sign In to add comment