class: center, middle, inverse, title-slide # ASP 460 2.0 Data Visualization ### Dr Thiyanga Talagala ### 4. Best Graphical Practice --- ## Cognitive Principles **Less conginitive effort to read the chart (what is presented) and save the time to think about the content of the chart** - Good visualizations take advantage of the human visual system's ability to process information with little effort. -- ## Preattentive graph perception It requires no conscious effort from the viewer to do understand what is presented through the design. It's automated and takes between 200-500 milliseconds to complete in the spatial memory. -- (**Spatial** working **memory** entails the ability to keep spatial information active in working memory over a short period of time.) --- ## Preattentive visual properties 1. Color 2. Form: collinearity, curvature, marks, shape, size, spatial grouping, length, width, breadth 3. Spatial position: 2D, 3D 4. Movement: flicker, movement
<i class="fas fa-leaf faa-flash animated "></i>
<i class="fas fa-leaf faa-bounce animated "></i>
These are processed in our sensory memory without our conscious thoughts (without having knowledge of something). --- ## Inclass discussion --- class: inverse, center, middle ## Cognitive principles --- ## 1. Proximity .pull-left[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-2-1.png)<!-- --> ] .pull-right[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-3-1.png)<!-- --> ] --- # 2. Similarity .pull-left[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-4-1.png)<!-- --> ] .pull-right[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-5-1.png)<!-- --> ] --- ## 3. Common region .pull-left[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-6-1.png)<!-- --> ] .pull-right[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-7-1.png)<!-- --> ] --- ## 4. Common fate .pull-left[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-8-1.png)<!-- --> ] -- .pull-right[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-9-1.png)<!-- --> ] --- .pull-left[ US vs India ![](lesson4viz2021_files/figure-html/unnamed-chunk-10-1.png)<!-- --> ] .pull-right[ US vs Russia ![](lesson4viz2021_files/figure-html/unnamed-chunk-11-1.png)<!-- --> ] --- .pull-left[ US vs India ![](lesson4viz2021_files/figure-html/unnamed-chunk-12-1.png)<!-- --> ] .pull-right[ US vs Russia ![](lesson4viz2021_files/figure-html/unnamed-chunk-13-1.png)<!-- --> ] --- ## 5. Working memory More than seven categories decrease readability and increase comprehension time. --- ## 6. Change blindness .pull-left[ <iframe width="560" height="800" src="pop.gif" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> ] .pull-right[ Resources: https://guyabel.github.io/wcde/articles/wcde.html ] --- ## 7. Easy comparisons 1. Position (common scale) 2. Position (nonaligned scale) 3. Length, direction, angle, slope 4. Area 5. Volume, density, curve 6. Shading, color saturation, colour hue 7. Discriminable shape 8. Indiscriminable shape --- ## 7. Easy comparisons: Example colour, discriminable shape, indiscriminable shape ![](lesson4viz2021_files/figure-html/unnamed-chunk-14-1.png)<!-- --> --- ## 7. Easy comparisons: Example .pull-left[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-15-1.png)<!-- --> ] .pull-right[ ![](lesson4viz2021_files/figure-html/unnamed-chunk-16-1.png)<!-- --> ] --- .pull-left[ In 1980s, statisticians William Cleveland and Robert McGill ran some experiments with human volunteers, measuring how accurately they were able to perceive the quantitative information encoded by different cues. ] .pull-right[ ![](cleveland.jpeg) ] --- # Jock D. Mackinlay Jock D. Mackinlay received his PhD in computer science from Stanford University, where he pioneered the automatic design of graphical presentations of relational information. --- ## Which visual encoding method is best for you? .pull-left[ ![description of the image](vizmethod.png) ] .pull-right[ Source: https://www.qlik.com/blog/visual-encoding ]