Graphical/Visual Properties
Download
Report
Transcript Graphical/Visual Properties
Multivariate Data &
Representations
CS 7450 - Information Visualization
Jan. 20, 2005
John Stasko
Agenda
• Data forms and representations
• Basic representation techniques
• Multivariate (>3) techniques
Spring 2005
CS 7450
2
Data Sets
• Data comes in many different forms
• Typically, not in the way you want it
• How is stored (in the raw)?
Spring 2005
CS 7450
3
Example
• Cars
make
model
year
miles per gallon
cost
number of cylinders
weights
...
Spring 2005
CS 7450
4
Example
• Web pages
Spring 2005
CS 7450
5
Data Tables
• Often, we take raw data and transform it
into a form that is more workable
• Main idea:
Individual items are called cases
Cases have variables (attributes)
Spring 2005
CS 7450
6
Data Table Format
Case1
Case2
Case3
Variable1
Value11
Value21
Value31
Variable2
Value12
Value22
Value32
Variable3
Value13
Value23
Value33
...
...
Think of as a function
f(case1) = <Val11, Val12,…>
Spring 2005
CS 7450
7
Example
Mary
Jim
Sally
Mitch
SSN
145
294
563
823
Age
23
17
47
29
Hair
brown
black
GPA
2.9
3.7
blonde
red
3.4
2.1
...
...
People in class
Spring 2005
CS 7450
8
Example
Baseball
statistics
Spring 2005
CS 7450
9
Variable Types
• Three main types of variables
N-Nominal (equal or not equal to other
values)
Example: gender
O-Ordinal (obeys < relation, ordered set)
Example: fr,so,jr,sr
Q-Quantitative (can do math on them)
Example: age
Spring 2005
CS 7450
10
Metadata
• Descriptive information about the data
Might be something as simple as the type of
a variable, or could be more complex
For times when the table itself just isn’t
enough
Example: if variable1 is “l”, then variable3
can only be 3, 7 or 16
Spring 2005
CS 7450
11
How Many Variables?
• Data sets of dimensions 1, 2, 3 are
common
• Number of variables per class
1 - Univariate data
2 - Bivariate data
3 - Trivariate data
>3 - Hypervariate data
Spring 2005
CS 7450
12
Representation
• What’s a common way of visually
representing multivariate data sets?
• Graphs!
Spring 2005
CS 7450
13
Good Example
www.nationmaster.com
Spring 2005
CS 7450
14
Basic Symbolic Displays
•
•
•
•
Graphs
Charts
Maps
Diagrams
From:
S. Kosslyn, “Understanding charts
and graphs”, Applied Cognitive
Psychology, 1989.
Spring 2005
CS 7450
15
1. Graph
Showing the relationships between variables’
values in a data table
100
80
60
East
40
West
North
20
0
Spring 2005
1st
Qtr
2nd
Qtr
3rd
Qtr
4th
Qtr
CS 7450
16
Properties
• Graph
Visual display that illustrates one or more
relationships among entities
Shorthand way to present information
Allows a trend, pattern or comparison to be
easily comprehended
Spring 2005
CS 7450
17
Issues
• Critical to remain task-centric
Why do you need a graph?
What questions are being answered?
What data is needed to answer those
questions?
Who is the audience?
money
Spring 2005
CS 7450
time
18
Graph Components
• Framework
Measurement types, scale
• Content
Marks, lines, points
• Labels
Title, axes, ticks
Spring 2005
CS 7450
19
Other Symbolic Displays
• Chart
• Map
• Diagram
Spring 2005
CS 7450
20
2. Chart
• Structure is important, relates entities to each other
• Primarily uses lines, enclosure, position to link entities
Examples: flowchart, family tree, org chart, ...
Spring 2005
CS 7450
21
3. Map
• Representation of spatial relations
• Locations identified by labels
Spring 2005
CS 7450
22
Choropleth Map
Areas are filled
and colored
differently to
indicate some
attribute of that
region
Spring 2005
CS 7450
23
Cartography
• Cartographers and map-makers have a
wealth of knowledge about the design
and creation of visual information artifacts
Labeling, color, layout, …
• Information visualization researchers
should learn from this older, existing area
Spring 2005
CS 7450
24
4. Diagram
• Schematic picture of object or entity
• Parts are symbolic
Examples: figures, steps in a manual, illustrations,...
Spring 2005
CS 7450
25
Details
• What are the constituent pieces of these
four symbolic displays?
• What are the building blocks?
Spring 2005
CS 7450
26
Visual Structures
• Composed of
Spatial substrate
Marks
Graphical properties of marks
Spring 2005
CS 7450
27
Space
• Visually dominant
• Often put axes on space to assist
• Use techniques of
composition, alignment, folding,
recursion, overloading to
1) increase use of space
2) do data encodings
Spring 2005
CS 7450
28
Marks
• Things that occur in space
Points
Lines
Areas
Volumes
Spring 2005
CS 7450
29
Graphical Properties
• Size, shape, color, orientation...
Spatial properties
Object properties
Expressing
extent
Position
Size
Grayscale
Differentiating
marks
Orientation
Spring 2005
Color
Shape
Texture
CS 7450
30
Intermission
• Getting slides
• Getting papers
• Photos
Spring 2005
CS 7450
31
Back to Data
• What were the different types of data
sets?
• Number of variables per class
1 - Univariate data
2 - Bivariate data
3 - Trivariate data
>3 - Hypervariate data
Spring 2005
CS 7450
32
Univariate Data
• Representations
7
Bill
Tukey box plot
5
low
3
1
high
Mean
0
Spring 2005
Middle 50%
CS 7450
20
33
What goes where
• In univariate representations, we often think of the data
case as being shown along one dimension, and the
value in another
Line
graph
Spring 2005
Bar
graph
Y-axis is quantitative
variable
Y-axis is quantitative
variable
See changes over
consecutive values
Compare relative point
values
CS 7450
34
Alternative View
• We may think of graph as representing
independent (data case) and dependent
(value) variables
• Guideline:
Independent vs. dependent variables
Put independent on x-axis
See resultant dependent variables along y-axis
Spring 2005
CS 7450
35
Bivariate Data
• Representations
Scatter plot is common
price
Two variables, want to
see relationship
Each mark is now
a data case
Spring 2005
Is there a linear, curved or
random pattern?
mileage
CS 7450
36
Trivariate Data
• Representations
3D scatter plot is possible
price
horsepower
mileage
Spring 2005
CS 7450
37
Alternative Representation
Still use 2D but have
mark property
represent third
variable
Spring 2005
CS 7450
38
Alternative Representation
Represent each variable
in its own explicit way
Spring 2005
CS 7450
39
Hypervariate Data
• Ahhh, the tough one
• Number of well-known visualization
techniques exist for data sets of 1-3
dimensions
line graphs, bar graphs, scatter plots OK
We see a 3-D world (4-D with time)
• What about data sets with more than 3
variables?
Often the interesting, challenging ones
Spring 2005
CS 7450
40
Multiple Views
Give each variable its own display
1
1
2
3
4
A
4
6
5
2
B
1
3
7
6
C
8
4
2
3
D
3
2
4
1
E
5
1
3
5
2
3
4
A B C D E
Spring 2005
CS 7450
41
Scatterplot Matrix
Represent each possible
pair of variables in their
own 2-D scatterplot
Useful for what?
Misses what?
Spring 2005
CS 7450
42
Chernoff Faces
Encode different variables’ values in characteristics
of human face
Cute applets:
Spring 2005
http://www.cs.uchicago.edu/~wiseman/chernoff/
http://hesketh.com/schampeo/projects/Faces/chernoff.html
CS 7450
43
Star Plots
Var 1
Var 5
Var 2
Value
Var 4
Spring 2005
Var 3
Space out the n
variables at equal
angles around a
circle
Each “spoke” encodes
a variable’s value
CS 7450
44
Star Plot examples
http://seamonkey.ed.asu.edu/~behrens/asu/reports/compre/comp1.html
Spring 2005
CS 7450
45
Star Coordinates
E. Kandogan, “Star Coordinates: A Multi-dimensional Visualization
Technique with Uniform Treatment of Dimensions”, InfoVis 2000
Late-Breaking Hot Topics, Oct. 2000
Spring 2005
CS 7450
Demo
46
Parallel Coordinates
• What are they?
Explain…
Spring 2005
CS 7450
47
Parallel Coordinates
Encode variables along
a horizontal row
Vertical line specifies
values
V1
V2
Spring 2005
V3
V4
V5
CS 7450
48
Parallel Coords Example
Basic
Grayscale
Color
Spring 2005
CS 7450
49
Application
• System that uses parallel coordinates for
information analysis and discovery
• Interactive tool
Can focus on certain data items
Color
Taken from:
A. Inselberg, “Multidimensional Detective”
InfoVis ‘97, 1997.
Spring 2005
CS 7450
50
Discuss
• What was their domain?
• What was their problem?
• What were their data sets?
Spring 2005
CS 7450
51
The Problem
• VLSI chip manufacture
• Want high quality chips (high speed) and
a high yield batch (% of useful chips)
• Able to track defects
• Hypothesis: No defects gives desired chip
types
• 473 batches of data
Spring 2005
CS 7450
52
The Data
• 16 variables
X1 - yield
X2 - quality
X3-X12 - # defects (inverted)
X13-X16 - physical parameters
Spring 2005
CS 7450
53
Parallel Coordinate Display
yield &
quality
defects
parameters
Yikes!
But not
that bad
Distributions
x1 - normal
x2 - bipolar
Spring 2005
CS 7450
54
Top Yield & Quality
split
defects
Have some defects
Spring 2005
CS 7450
55
Minimal Defects
Not the
highest
yields and
quality
Spring 2005
CS 7450
56
Best Yields
Appears that
some defects
are necessary
to produce
the best chips
Non-intuitive!
Spring 2005
CS 7450
57
Xmdv
Toolsuite created
by Matthew Ward
of WPI
Includes parallel
coordinate views
Demo
Spring 2005
CS 7450
58
Parallel Coordinate Tree
Demo
Spring 2005
D. Brodbeck and L. Girardin, "Visualization of LargeScale Customer Satisfaction Surveys Using a Parallel
Coordinate Tree", InfoVis ’03.
CS 7450
59
Parallel Coordinates
• Technique
Strengths?
Weaknesses?
Spring 2005
CS 7450
60
Sliding Rods
Spring 2005
CS 7450
T. Lanning, K. Wittenburg, et al,
"Multidimensional Information
Visualization through Sliding Rods",
Proceedings of AVI 2000
61
Administratia
• Computer accounts
• HW 1 in today
• HW 3 due Tuesday
Spring 2005
CS 7450
62
Upcoming
• Multivariate vis tools
Reading:
Eick paper
• Visual perception
• Tufte (please be reading)
Spring 2005
CS 7450
63
Sources Used
CMS book
Referenced articles
Marti Hearst SIMS 247 lectures
Kosslyn ‘89 article
A. Marcus, Graphic Design for Electronic Documents
and User Interfaces
M. Monmonier, How to Lie with Maps
W. Cleveland, The Elements of Graphing Data
C. H. Yu, Visualization Techniques of Different Dimensions
http://seamonkey.ed.asu.edu/~behrens/asu/reports/compre/comp1.html
http://www.csc.ncsu.edu/faculty/healey/PP/PP.html
Spring 2005
CS 7450
64