[comment]: # (Compile this presentation with the command below) [comment]: # (mdslides index.md && mv index/index.html .) [comment]: # (The list of themes is at https://revealjs.com/themes/) [comment]: # (The list of code themes is at https://highlightjs.org/) [comment]: # (Pass optional settings to reveal.js:) [comment]: # (markdown: { smartypants: true }) [comment]: # (Other settings are documented at https://revealjs.com/config/) ### Data Visualization Workshop ---------- Dr. Kevin Buffardi, Professor, Chico State
This presentation is accessible at [learnbyfailure.com/data-viz/](https://learnbyfailure.com/data-viz/) and its source is available on [GitHub](https://github.com/kbuffardi/data-viz/).
[Back to LearnByFailure](https://learnbyfailure.com/research/)
#### Goals - Communicate meaning of data - Relationships - Comparisons - Distributions - Composition - Interact and explore data
#### Modes of Visualization - What is necessary? - **Tables** enable lookup of specific values - **Charts** provide nuance - simplify multivariate visualization - **Interactive visualizations** provide custom control
#### Get to Know Your Data - How many variables? - Categorical - Qualitative data - Clusters - Ordinal - Ordered, but not on numerical scale - "Strongly Disagree" to "Strongly Agree" Likert-type - Numeric - Continuous - Discrete
#### Choosing the Right Chart
#### Choosing the Right Colors - **Sequential** - vary only lightness/opacity - **Continuous** - continuous scale - **Discrete** - ordinal, discrete, or "buckets"
#### Choosing the Right Colors - **Divergent** - vary between hues to signify magnitude and category
#### Choosing the Right Colors - **Categorical** - categorize by hue
#### Viz Sins Common bad practices ("Viz Sins") - Misrepresent data - Difficult to interpret
#### Viz Sins: Colors - Color scale does not match data type - Too close to differentiate - Ignoring Color Blindness - [Simulate Color Blindness](https://www.color-blindness.com/coblis-color-blindness-simulator/) - Antidotes - [Color blind safe palettes](https://davidmathlogic.com/colorblind) - Redundant encoding data (shapes/patterns/size/etc.)
#### Viz Sins: Axes - Axes - Label scale and units - Avoid misleading "broken axis" - Unnecessary dimensions - Linear vs Logarithmic scale
#### Viz Sins: Where People Live - Graphing by location - Population density is a dominant factor - [Reddit People Live in Cities](https://www.reddit.com/r/PeopleLiveInCities/)
#### Viz Sins: Over-sliced Pie - Pie charts with too many slices
#### Interactive Visualizations - Interaction gives control over visualization - [Shneiderman's Information Seeking Mantra](https://www.cs.umd.edu/~ben/papers/Shneiderman1996eyes.pdf) - Overview first - Zoom and filter - Details on demand
#### Tools - Charts - R [ggplot](https://ggplot2.tidyverse.org/) - Python [plotly](https://plotly.com/python/) - Interactive visualizations - Shiny for [R](https://shiny.posit.co/py/docs/comp-r-shiny.html) or [Python](https://shiny.posit.co/py/) - [Tableau](https://www.tableau.com/)
#### Data Visualization Workshop
This presentation is accessible at [learnbyfailure.com/data-viz/](https://learnbyfailure.com/data-viz/) and its source is available on [GitHub](https://github.com/kbuffardi/data-viz/).
[Back to LearnByFailure](https://learnbyfailure.com/research/)