Lecture 7
Charts
DATA 8
Fall 2023
Announcements
Weekly Goals
Attribute Types
Types of Attributes
All values in a column of a table should be both the same type and be comparable to each other in some way
“Numerical” Attributes
Just because the values are numbers, doesn’t mean the attribute is numerical
Numerical Data
Plotting Two Numerical Variables
Line plot: plot
Scatter plot : scatter
(Demo)
https://en.wikipedia.org/wiki/C-3PO
Anthony Daniels,
actor
Line vs Scatter Plot
Categorical and Numerical Variables
Highest Grossing Movies as of 2017
(Demo)
How Do You Generate This Chart?
Top 10 highest grossing movies
Number of years since release
Visualization Fundamentals
Don’t Do This
Source: Washington Post
Do This Instead
Source: Ross Ihaka
Good Practices
See Edward Tufte’s “The Visual Display of Quantitative Information”
Importance of the Y-Axis