Visualization and data mapping

1.158 Aufrufe

Veröffentlicht am

on oct 23, 2013 at Dev.study
by nacyot(Daekwon Kim)

Veröffentlicht in: Technologie
0 Kommentare
3 Gefällt mir
Statistik
Notizen
  • Als Erste(r) kommentieren

Keine Downloads
Aufrufe
Aufrufe insgesamt
1.158
Auf SlideShare
0
Aus Einbettungen
0
Anzahl an Einbettungen
97
Aktionen
Geteilt
0
Downloads
3
Kommentare
0
Gefällt mir
3
Einbettungen 0
Keine Einbettungen

Keine Notizen für die Folie

Visualization and data mapping

  1. 1. Visualization and Data Mapping Daekwon Kim propellerheaven@gmail.com
  2. 2. King Sejong
  3. 3. William Playfair
  4. 4. Score Data Class Mathematics Korean English Science Score 80 90 60 50
  5. 5. Source Code of Bar Plot barplot( c(80,90,60,70), names.arg=c(Mathematics,Korean,English,Science), col=rainbow(4), ylim=c(0,100) )
  6. 6. Graph
  7. 7. Data mapping 데이터(변수)를눈에보이는요소에연결시키는일 위표에서우리가가진변수 과목(Class):Nominal 점수(Score):Ratio
  8. 8. Variables = Aesthetics Class=barorbar.name Score=bar.height
  9. 9. Graph Again
  10. 10. Where is the color? Graphliteracy
  11. 11. Variables = Aesthetics Data.Class=bar.name Data.Class=bar.color(Duplication!) Data.Score=bar.height barplot( #Date.Score=bar.height c(80,90,60,70), #Data.Class=bar.name names.arg=c(Mathematics,Korean,English,Science), #Data.Class=bar.color col=rainbow(4), #Y-axisrange ylim=c(0,100) )
  12. 12. Barplots
  13. 13. Useless Colors
  14. 14. Remove color barplot( #Date.Score=bar.height c(80,90,60,70), #Data.Class=bar.name names.arg=c(Mathematics,Korean,English,Science), #Y-axisrange ylim=c(0,100) )
  15. 15. Graph
  16. 16. Libreoffice Calc
  17. 17. Another Data Class Korean English Physics Biology Chemisry Category Language Language Science Science Science Score 90 85 70 75 60
  18. 18. Data Mapping Again Data.Class=bar.name Data.Category=bar.color Data.Score=bar.height barplot( #Date.Score=bar.height c(90,85,70,75,60), #Data.Class=bar.name names.arg=c(Korean,English,Physics,Biology,Chemistry), #Data.Category=Color col=c(gold,gold,azure,azure,azure) #Y-axisrange ylim=c(0,100) )
  19. 19. Graph
  20. 20. ggplot2 HadleyWickham 그래프를그리기위한R패키지 R에서가장많이쓰이는패키지 #ggplot2패키지설치 install.packages('ggplot2') #ggplot2패키지로드 library(ggplot2)
  21. 21. The grammar of graphics LelandWilkinson ggplot2는이책의이론에기반 ggplot2gg는Thegrammarofgraphics의줄임말
  22. 22. Data data_class= c(Korean,English,Physics,Biology,Chemistry) data_score= c(90,85,70,75,60) data_category= c(language,language,science,science,science) score_data=data.frame( class=data_class, category=data_category, score=data_score ) #평가 classcategoryscore 1Koreanlanguage90 2Englishlanguage85 3Physicsscience70 4Biologyscience75 5Chemistryscience60
  23. 23. Source Code #그래프시작,데이터지정 bargraph=ggplot(score_data)+ #그래프종류지정 geom_bar()+ #데이터와시각적요소의맵핑1 #Data.Class=bar.name aes(x=class)+ #데이터와시각적요소의맵핑2 #Data.Score=bar.height aes(y=score)+ #Y축범위지정 ylim(0,100)
  24. 24. Graph
  25. 25. Mapping Category Data To Color #그래프시작,데이터지정 bargraph=ggplot(score_data)+ #그래프종류지정 geom_bar()+ #데이터와시각적요소의맵핑1 #Data.Class=bar.name aes(x=factor(class))+ #데이터와시각적요소의맵핑2 #Data.Score=bar.height aes(y=score)+ #데이터와시각적요소의맵핑3 #Data.Category=bar.color aes(fill=category)+ #Y축범위지정 ylim(0,100)
  26. 26. Graph
  27. 27. Coordination #그래프시작,데이터지정 bargraph=ggplot(score_data)+ #그래프종류지정 geom_bar()+ #데이터와시각적요소의맵핑1 #Data.Class=bar.name aes(x=class)+ #데이터와시각적요소의맵핑2 #Data.Score=bar.height aes(y=score)+ #데이터와시각적요소의맵핑3 #Data.Category=bar.color aes(fill=category)+ #좌표계지정 coord_flip()+ #Y축범위지정 ylim(0,100)
  28. 28. Graph
  29. 29. Creating Graph Process
  30. 30. Creating Graph Process Variables Algebra Scales Statistics Geometry Coordinates Aesthetics
  31. 31. Creating Graph Process Process Variables Algebra Scales Statistics Geometry Coordinates Aesthetics Who Science Programmer Designer
  32. 32. Mathematical Graph Twovariables
  33. 33. 3 Dimension Threevariables
  34. 34. Gapminder Prof.HansRosling
  35. 35. What Dimension? XYspaceisnot2dementioninvisualization X Y Color Size Interaction Year Nation …
  36. 36. Charles Joseph Minard WhatDimension?
  37. 37. Lapisan
  38. 38. MangakaMap 2008
  39. 39. Putne 2013
  40. 40. Moplo 2013
  41. 41. Thank you very much!

×