ggplot2できれいなグラフ

22,701 views

Published on

Published in: Technology, Travel
1 Comment
31 Likes
Statistics
Notes
  • I'll try !!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
22,701
On SlideShare
0
From Embeds
0
Number of Embeds
4,394
Actions
Shares
0
Downloads
228
Comments
1
Likes
31
Embeds 0
No embeds

No notes for slide























  • ggplot2できれいなグラフ

    1. 1. ggplot2 @dichika 1
    2. 2. @dichika 2
    3. 3. R ? ggplot2 3
    4. 4. ggplot2 4
    5. 5. … http://had.co.nz/ggplot2/ ggplot2 Tsukuba.R http://www.slideshare.net/syou6162/tsukuba 5
    6. 6. 6
    7. 7. ggplot2 R base lattice 7
    8. 8. ggplot2 1. ggplot 2.geom 3.stat 4.opts 8
    9. 9. mtcars 11 32 (mpg) (wt) 9
    10. 10. 1. ggplot() ggplot(data=mtcars, aes(x=wt, y=mpg)) data aes aesthetic … x,y 10
    11. 11. 2.geom ggplot() geom_point() ggplot ' ' 11
    12. 12. ggplot(data=mtcars, aes(x=wt, y=mpg)) +geom_point() 12
    13. 13. ggplot(data=mtcars, aes(x=wt, y=mpg)) +geom_point(aes(colour=c yl)) +stat_smooth(method=”lm ”) 13
    14. 14. 3.stat … stat_smooth(method=”lm”) 14
    15. 15. +stat_smooth(method=”lm ”) 95 15
    16. 16. 4.opts, labs 16
    17. 17. +labs(x=”xlabel”, y=”ylabel”, colour=”legend”) 17
    18. 18. +opts(plot.title=”Motor Trend Car Road Tests”) 18
    19. 19. facet, scale, coord facet scale coord ( ) 19
    20. 20. qplot qplot quick plot qplot(mtcars, wt, mpeg, geom”point”) ggplot() layer qplot 20
    21. 21. ggplot2 → (geom_contour) 2 y 2 21
    22. 22. twitter 22
    23. 23. 23

    ×