H517 Visualization Design, Analysis, & Evaluation Week 11: - - PowerPoint PPT Presentation

h517 visualization design analysis evaluation
SMART_READER_LITE
LIVE PREVIEW

H517 Visualization Design, Analysis, & Evaluation Week 11: - - PowerPoint PPT Presentation

H517 Visualization Design, Analysis, & Evaluation Week 11: Networks & Trees Khairi Reda | redak@iu.edu School of Informa5cs & Compu5ng, IUPUI Last week Small Multiples Nick Elprin, Domino Multi form Based on a slide by Miriam


slide-1
SLIDE 1

H517 Visualization Design, Analysis, & Evaluation

Khairi Reda | redak@iu.edu School of Informa5cs & Compu5ng, IUPUI

Week 11: Networks & Trees

slide-2
SLIDE 2

Last week…

slide-3
SLIDE 3

Small Multiples

Nick Elprin, Domino

slide-4
SLIDE 4

Multi form

Based on a slide by Miriam Meyer and Alex Lex

slide-5
SLIDE 5

networks tables

friendship network

slide-6
SLIDE 6

cnn.com wired.com apple.com

Websites as networks of pages

Via Miriah Meyer

slide-7
SLIDE 7

Network (aka Graph)

V: Set of ver5ces (or nodes) E: Set of edges An edge e = (x, y) connects two ver5ces x and y For example:

V = {1, 2, 3, 4} E = {(1,2), (1, 4), (3, 2), (3, 4)}

1 2 3 4 1 4 3 2 1 2 3 4

Node-link diagram

slide-8
SLIDE 8

Graph terminology

Via Miriah Meyer

trees

slide-9
SLIDE 9

Graph vs. Tree

Graph

Nodes and edges No constraint on edges

Tree

Parents and children No “loops”

Hierarchical

  • rganizational

structures

Genome / phenotype similarity (tree of life)

slide-10
SLIDE 10

Node-Link Diagram

slide-11
SLIDE 11

Node-Link Diagram

http://bl.ocks.org/mbostock/4063550

slide-12
SLIDE 12

Limita5ons

  • Tree breadth tend to grow exponen5ally
  • Quickly run out of space!
  • Solu5ons
  • Scrolling or panning
  • Collapsing nodes
  • Hyperbolic layouts

Based on a slide by Miriah Meyer

Hyperbolic layout

Node-Link tree diagrams

slide-13
SLIDE 13

Icicle Plot

C A B F X Y Z D E

D E A B C F X Y Z

slide-14
SLIDE 14

Icicle Plot

slide-15
SLIDE 15

Radial Icicle Plot

http://bl.ocks.org/mbostock/raw/4348373/

slide-16
SLIDE 16

IndentaKon

  • Place all items along ver5cal

paced rows

  • Indenta5on used to show parent/

child rela5onships

  • Commonly used as a component

in user interfaces (e.g., File Explorer, Finder)

  • OUen requires significant

scrolling

Based on a slide by Miriah Meyer

slide-17
SLIDE 17

Enclosure Diagrams

  • Encode structure using spa5al enclosure
  • OUen referred to as a treemap
  • Pros
  • Provides single view of en5re tree
  • Easier to spot small/large branches
  • Cons
  • Difficult to interpret depth

Based on a slide by Miriah Meyer

C A B D E

A B C D E

slide-18
SLIDE 18

Treemap

http://homes.cs.washington.edu/~jheer//files/zoo/

slide-19
SLIDE 19

Treemap

Disk Inventory X

slide-20
SLIDE 20

Graph vs. Tree

Graph

Nodes and edges No constraint on edges

Tree

Parents and children No “loops”

slide-21
SLIDE 21

Visualizing Graphs

  • Node-link layouts
  • Force-Directed layout
  • A[ribute-based
  • Adjacency matrices
  • Aggregate Views
  • Mo5f Glyphs
  • PivotGraph
slide-22
SLIDE 22

Node-link diagrams

  • Primary concern of graph drawing is layout
  • f nodes (and ul5mately the edges)
  • Goal is to effecKvely depict the overall

graph structure

  • Connec5vity, path following
  • Clusters
  • Key readability measure: reduce the

frequency of edge crossing

1 2 3 4 1 4 3 2

slide-23
SLIDE 23

Exercise

create an aesthe5cally pleasing node-link diagram for this network

Miriah Meyer

slide-24
SLIDE 24

Exercise

Miriah Meyer

create an aesthe5cally pleasing node-link diagram for this network

slide-25
SLIDE 25

Force-directed layout

  • Physical model
  • Nodes = repulsive par5cles
  • Edges = springs

Miriah Meyer

slide-26
SLIDE 26

http://bl.ocks.org/mbostock/4062045

Force-directed layout

slide-27
SLIDE 27

Force-directed layout

  • Many varia5ons, but usually physical analogy:
  • Repulsion force: fR(d) = CR * m1*m2 / d2
  • m1, m2 are node masses
  • d is distance between nodes
  • AUracKon force: fA(d) = CA * (d – L)
  • L is the rest length of the spring
  • Total force on a node x with posi5on x’

∑ neighbors(x) : fA(||x’-y’||) * (x’-y’) + -fR(||x’-y’||) * (x’-y’)

Miriah Meyer

slide-28
SLIDE 28

Force-directed layout

  • Start from a random layout
  • Loop (top-level):
  • For every node pair, compute repulsive force
  • For every node pair, compute a[rac5ve force
  • accumulate forces per node
  • update each node posi5on in direc5on of

accumulated force

  • stop when layout is ‘good enough’

Miriah Meyer

Algorithm

slide-29
SLIDE 29

https://bl.ocks.org/mbostock/1062288

Collapsable force-directed graphs

slide-30
SLIDE 30

The internet

slide-31
SLIDE 31

Force-directed layout

  • Pros
  • Flexible, aesthe5cally pleasing layouts on many

types of graphs

  • Can add custom forces
  • Rela5vely easy to implement
  • Cons
  • Computa5onally expensive O(n3) for a non-
  • p5mized implementa5on
  • Prone to local minima

Based on a slide by Miriah Meyer

slide-32
SLIDE 32

Node-link diagram

Based on a slide by Miriah Meyer

  • Pros
  • Intui5ve visual mapping
  • Can show overall structure,

clusters, and paths

  • Cons
  • Not good for dense graphs (the

hairball problem)

slide-33
SLIDE 33

Visualizing Graphs

  • Node-link layouts
  • Force-Directed layout
  • A[ribute-based
  • Adjacency matrices
  • Aggregate Views
  • Mo5f Glyphs
  • PivotGraph
slide-34
SLIDE 34

Adjacency Matrix

Miriah Meyer

slide-35
SLIDE 35

Adjacency Matrix

https://bost.ocks.org/mike/miserables/

slide-36
SLIDE 36
  • Pros
  • Good for dense graphs
  • Visually scalable
  • Highlights clusters
  • Cons
  • Not as intui5ve, compared to a graph
  • Row/column order affects percep5on of pa[erns
  • Hard to follow paths

Adjacency Matrix

slide-37
SLIDE 37

Hybrid: node-link + matrix

NodeTrix, Henry and Fekete, 2007

slide-38
SLIDE 38

Visualizing Graphs

  • Node-link layouts
  • Force-Directed layout
  • A[ribute-based
  • Adjacency matrices
  • Aggregate Views
  • Mo5f Glyphs
  • PivotGraph
slide-39
SLIDE 39
slide-40
SLIDE 40

MoKf Glyphs

Dunne 2013

connector fan clique

slide-41
SLIDE 41

MoKf Glyphs

Dunne 2013

slide-42
SLIDE 42

MoKf Glyphs

Dunne 2013