Selecting the Aspect Ratio of a Scatter Plot Based on Its Delaunay - - PowerPoint PPT Presentation

selecting the aspect ratio of a scatter plot based on its
SMART_READER_LITE
LIVE PREVIEW

Selecting the Aspect Ratio of a Scatter Plot Based on Its Delaunay - - PowerPoint PPT Presentation

Selecting the Aspect Ratio of a Scatter Plot Based on Its Delaunay Triangulation Martin Fink Lehrstuhl f ur Informatik I Universit at W urzburg Joint work with Jan-Henrik Haunert, Joachim Spoerhase & Alexander Wolff 1 /15


slide-1
SLIDE 1

/15 1

Selecting the Aspect Ratio

  • f a Scatter Plot

Based on Its Delaunay Triangulation

Martin Fink Lehrstuhl f¨ ur Informatik I Universit¨ at W¨ urzburg

Joint work with Jan-Henrik Haunert, Joachim Spoerhase & Alexander Wolff

slide-2
SLIDE 2

/15 2

Scatter Plots . . .

. . . reveal trends . . .

slide-3
SLIDE 3

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters.

slide-4
SLIDE 4

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001]

slide-5
SLIDE 5

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001] . . . heavily rely on the chosen aspect ratio.

[http://imgs.xkcd.com/comics/aspect ratio.png]

slide-6
SLIDE 6

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001] . . . heavily rely on the chosen aspect ratio.

slide-7
SLIDE 7

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001] . . . heavily rely on the chosen aspect ratio.

slide-8
SLIDE 8

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001] . . . heavily rely on the chosen aspect ratio.

slide-9
SLIDE 9

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001] . . . heavily rely on the chosen aspect ratio.

slide-10
SLIDE 10

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001] . . . heavily rely on the chosen aspect ratio.

slide-11
SLIDE 11

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001] . . . heavily rely on the chosen aspect ratio.

slide-12
SLIDE 12

/15 2

Scatter Plots . . .

. . . reveal trends . . . . . . or clusters. . . . are most-frequently used visualizations in scientific publications. [Tufte, 2001] . . . heavily rely on the chosen aspect ratio. task: automatically select a good aspect ratio

slide-13
SLIDE 13

/15 3

Previous Work

aspect-ratio selection for line charts e.g. banking to 45◦ [Heer + Agrawala, 2006]

slide-14
SLIDE 14

/15 3

Previous Work

aspect-ratio selection for line charts e.g. banking to 45◦ [Heer + Agrawala, 2006] [Cleveland et al., 1988] suggest to use virtual line segments

slide-15
SLIDE 15

/15 3

Previous Work

aspect-ratio selection for line charts e.g. banking to 45◦ [Heer + Agrawala, 2006] [Cleveland et al., 1988] suggest to use virtual line segments [Talbot et al., 2011]: use contour lines from kernel density estimator

slide-16
SLIDE 16

/15 3

Previous Work

aspect-ratio selection for line charts e.g. banking to 45◦ [Heer + Agrawala, 2006] [Cleveland et al., 1988] suggest to use virtual line segments [Talbot et al., 2011]: use contour lines from kernel density estimator results depend on initial aspect ratio

slide-17
SLIDE 17

/15 4

Our Approach

measure quality of different aspect ratios independently

slide-18
SLIDE 18

/15 4

Our Approach

measure quality of different aspect ratios independently use the Delaunay triangulation

slide-19
SLIDE 19

/15 4

Our Approach

measure quality of different aspect ratios independently use the Delaunay triangulation

  • ptimization criteria:

– maximize smallest angle – minimize total edge length – optimize compactness of triangles – etc.

slide-20
SLIDE 20

/15 4

Our Approach

measure quality of different aspect ratios independently use the Delaunay triangulation

  • ptimization criteria:

– maximize smallest angle – minimize total edge length – optimize compactness of triangles – etc.

slide-21
SLIDE 21

/15 5

Definitions

point Set P = {p1, . . . , pn} point pi = (xi, yi)

slide-22
SLIDE 22

/15 5

Definitions

point Set P = {p1, . . . , pn} point pi = (xi, yi) scale factor s defines aspect-ratio

slide-23
SLIDE 23

/15 5

Definitions

point Set P = {p1, . . . , pn} point pi = (xi, yi) scale factor s defines aspect-ratio pi(s) = (1/√s · xi, s · yi)

slide-24
SLIDE 24

/15 5

Definitions

point Set P = {p1, . . . , pn} point pi = (xi, yi) scale factor s defines aspect-ratio pi(s) = (1/√s · xi, √s · yi) preserve the area

slide-25
SLIDE 25

/15 5

Definitions

point Set P = {p1, . . . , pn} point pi = (xi, yi) scale factor s defines aspect-ratio pi(s) = (1/√s · xi, √s · yi) preserve the area

slide-26
SLIDE 26

/15 6

First Idea

aspect ratio s

slide-27
SLIDE 27

/15 6

First Idea

aspect ratio s

discretize into k aspect ratios

slide-28
SLIDE 28

/15 6

First Idea

aspect ratio s

discretize into k aspect ratios independently – compute Delaunay triangulation – measure quality

slide-29
SLIDE 29

/15 6

First Idea

aspect ratio s

discretize into k aspect ratios independently – compute Delaunay triangulation – measure quality select best checked aspect ratio

slide-30
SLIDE 30

/15 6

First Idea

aspect ratio s

discretize into k aspect ratios independently – compute Delaunay triangulation – measure quality select best checked aspect ratio Θ(n log n) Θ(n)

slide-31
SLIDE 31

/15 6

First Idea

aspect ratio s

discretize into k aspect ratios independently – compute Delaunay triangulation – measure quality select best checked aspect ratio runtime: Θ(kn log n) Θ(n log n) Θ(n)

slide-32
SLIDE 32

/15 6

First Idea

aspect ratio s

discretize into k aspect ratios independently – compute Delaunay triangulation – measure quality select best checked aspect ratio runtime: Θ(kn log n) Θ(n log n) Θ(n) approximation? which intermediate ratios?

slide-33
SLIDE 33

/15 7

Overview

  • 1. Maintaining the Delaunay Triangulation
  • 2. Maximizing the Smallest Angle
  • 3. Minimizing the Total Edge Length
  • 4. Other Optimization Criteria
slide-34
SLIDE 34

/15 8

  • 1. Maintaining the Delaunay Triangulation

aspect ratio s

start at some s

slide-35
SLIDE 35

/15 8

  • 1. Maintaining the Delaunay Triangulation

aspect ratio s

start at some s compute Delaunay triangulation

slide-36
SLIDE 36

/15 8

  • 1. Maintaining the Delaunay Triangulation

aspect ratio s

start at some s compute Delaunay triangulation continuously change s

slide-37
SLIDE 37

/15 8

  • 1. Maintaining the Delaunay Triangulation

aspect ratio s

start at some s compute Delaunay triangulation continuously change s perform flips if necessary

slide-38
SLIDE 38

/15 8

  • 1. Maintaining the Delaunay Triangulation

aspect ratio s

start at some s compute Delaunay triangulation continuously change s perform flips if necessary criterion: empty circumcircle of 4 points easy to check

slide-39
SLIDE 39

/15 8

  • 1. Maintaining the Delaunay Triangulation

aspect ratio s

start at some s compute Delaunay triangulation continuously change s perform flips if necessary

slide-40
SLIDE 40

/15 8

  • 1. Maintaining the Delaunay Triangulation

aspect ratio s

start at some s compute Delaunay triangulation continuously change s perform flips if necessary go through all flips

slide-41
SLIDE 41

/15 8

  • 1. Maintaining the Delaunay Triangulation

aspect ratio s

start at some s compute Delaunay triangulation continuously change s perform flips if necessary go through all flips

slide-42
SLIDE 42

/15 9

  • 1. Maintaining the Delaunay Triangulation f.

aspect ratio s

sweep over possible aspect ratios handle event queue of edge flips

slide-43
SLIDE 43

/15 9

  • 1. Maintaining the Delaunay Triangulation f.

aspect ratio s

sweep over possible aspect ratios handle event queue of edge flips update takes O(log n) time [Roos, 1993]

slide-44
SLIDE 44

/15 9

  • 1. Maintaining the Delaunay Triangulation f.

aspect ratio s

sweep over possible aspect ratios handle event queue of edge flips update takes O(log n) time [Roos, 1993] O(n2+ǫ) flips [Rubin, 2012]

slide-45
SLIDE 45

/15 9

  • 1. Maintaining the Delaunay Triangulation f.

aspect ratio s

sweep over possible aspect ratios handle event queue of edge flips update takes O(log n) time [Roos, 1993] O(n2+ǫ) flips [Rubin, 2012] here: at most 2 flips per possible edge

slide-46
SLIDE 46

/15 9

  • 1. Maintaining the Delaunay Triangulation f.

aspect ratio s

sweep over possible aspect ratios handle event queue of edge flips update takes O(log n) time [Roos, 1993] O(n2+ǫ) flips [Rubin, 2012] here: at most 2 flips per possible edge

slide-47
SLIDE 47

/15 9

  • 1. Maintaining the Delaunay Triangulation f.

aspect ratio s

sweep over possible aspect ratios handle event queue of edge flips update takes O(log n) time [Roos, 1993] O(n2+ǫ) flips [Rubin, 2012] here: at most 2 flips per possible edge

slide-48
SLIDE 48

/15 9

  • 1. Maintaining the Delaunay Triangulation f.

aspect ratio s

sweep over possible aspect ratios handle event queue of edge flips update takes O(log n) time [Roos, 1993] O(n2+ǫ) flips [Rubin, 2012] here: at most 2 flips per possible edge

slide-49
SLIDE 49

/15 9

  • 1. Maintaining the Delaunay Triangulation f.

aspect ratio s

sweep over possible aspect ratios handle event queue of edge flips update takes O(log n) time [Roos, 1993] O(n2+ǫ) flips [Rubin, 2012] here: at most 2 flips per possible edge total runtime: O(n2 log n) for traversing all topologically different Delaunay triangulations

slide-50
SLIDE 50

/15 10

  • 2. Maximizing the Smallest Angle

aspect ratio s

  • ptimize between event points
slide-51
SLIDE 51

/15 10

  • 2. Maximizing the Smallest Angle

aspect ratio s

  • ptimize between event points

angle α describes function α(s) ∠ s

slide-52
SLIDE 52

/15 10

  • 2. Maximizing the Smallest Angle

aspect ratio s

  • ptimize between event points

angle α describes function α(s) ∠ s put functions together

slide-53
SLIDE 53

/15 10

  • 2. Maximizing the Smallest Angle

aspect ratio s

  • ptimize between event points

angle α describes function α(s) ∠ s put functions together traverse lower envelope

slide-54
SLIDE 54

/15 10

  • 2. Maximizing the Smallest Angle

aspect ratio s

  • ptimize between event points

angle α describes function α(s) ∠ s put functions together traverse lower envelope Davenport-Schinzel sequences & [Agarwall + Sharir, 1995]: yields globally optimal aspect ratio in O(n2 log n) time

slide-55
SLIDE 55

/15 11

  • 3. Minimizing the Total Edge Length

sum of many functions ⇒ previous approach does not work find (1 + ǫ)-approximation

slide-56
SLIDE 56

/15 11

  • 3. Minimizing the Total Edge Length

sum of many functions ⇒ previous approach does not work find (1 + ǫ)-approximation between flips consider (1 + ǫ)-intermediate steps s (1 + ǫ)s

slide-57
SLIDE 57

/15 11

  • 3. Minimizing the Total Edge Length

sum of many functions ⇒ previous approach does not work find (1 + ǫ)-approximation between flips consider (1 + ǫ)-intermediate steps length le of edge e within a small intervall: le(s(1 + ǫ)) ≤ (1 + ǫ)le(s) s (1 + ǫ)s

slide-58
SLIDE 58

/15 11

  • 3. Minimizing the Total Edge Length

sum of many functions ⇒ previous approach does not work find (1 + ǫ)-approximation between flips consider (1 + ǫ)-intermediate steps length le of edge e within a small intervall: le(s(1 + ǫ)) ≤ (1 + ǫ)le(s) s (1 + ǫ)s carries over to sum find (1 + ǫ)-approximation in O(n3+n ·

1 log(1+ǫ)) time

slide-59
SLIDE 59

/15 11

  • 3. Minimizing the Total Edge Length

sum of many functions ⇒ previous approach does not work find (1 + ǫ)-approximation between flips consider (1 + ǫ)-intermediate steps length le of edge e within a small intervall: le(s(1 + ǫ)) ≤ (1 + ǫ)le(s) s (1 + ǫ)s carries over to sum find (1 + ǫ)-approximation in O(n3+n ·

1 log(1+ǫ)) time

also works for other optimization criteria

slide-60
SLIDE 60

/15 12

  • 4. Other Optimization Criteria

maximize total compactness of triangles √area perimeter

slide-61
SLIDE 61

/15 12

  • 4. Other Optimization Criteria

maximize total compactness of triangles minimize total uncompactness of triangles √area perimeter √area perimeter

slide-62
SLIDE 62

/15 12

  • 4. Other Optimization Criteria

maximize total compactness of triangles minimize total uncompactness of triangles √area perimeter √area perimeter more: – maximize mean inradius – minimize sum of squared angles

slide-63
SLIDE 63

/15 13

User Study

What do users want? let participants choose

Please participate: www1.informatik.uni-wuerzburg.de/scatterplots

slide-64
SLIDE 64

/15 13

User Study

What do users want? let participants choose

Please participate: www1.informatik.uni-wuerzburg.de/scatterplots

slide-65
SLIDE 65

/15 13

User Study

What do users want? let participants choose

Please participate: www1.informatik.uni-wuerzburg.de/scatterplots

slide-66
SLIDE 66

/15 13

User Study

What do users want? let participants choose

Please participate: www1.informatik.uni-wuerzburg.de/scatterplots

slide-67
SLIDE 67

/15 13

User Study

What do users want? let participants choose 18 tested instances, e.g. . . .

Please participate: www1.informatik.uni-wuerzburg.de/scatterplots

slide-68
SLIDE 68

/15 14

Test Results

maximize minimum angle

slide-69
SLIDE 69

/15 14

Test Results

maximize minimum angle maximize mean inradius

slide-70
SLIDE 70

/15 14

Test Results

maximize minimum angle maximize mean inradius maximize total compactness of triangles

slide-71
SLIDE 71

/15 14

Test Results

maximize minimum angle maximize mean inradius maximize total compactness of triangles minimize total uncompactness of triangles

slide-72
SLIDE 72

/15 14

Test Results

maximize minimum angle maximize mean inradius maximize total compactness of triangles minimize total uncompactness of triangles minimize total edge length

slide-73
SLIDE 73

/15 14

Test Results

maximize minimum angle maximize mean inradius maximize total compactness of triangles minimize total uncompactness of triangles minimize total edge length

✗ ✗ ✗

slide-74
SLIDE 74

/15 14

Test Results

maximize minimum angle maximize mean inradius maximize total compactness of triangles minimize total uncompactness of triangles minimize total edge length

✗ ✗ ✗

  • preliminary results
  • f the user study

support this

slide-75
SLIDE 75

/15 15

Conclusion

Delaunay triangulation helps to optimize scatter plots Please participate in our user study! www1.informatik.uni-wuerzburg.de/scatterplots

slide-76
SLIDE 76

/15 15

Conclusion

Delaunay triangulation helps to optimize scatter plots maintaining the Delaunay triangulation is fast Please participate in our user study! www1.informatik.uni-wuerzburg.de/scatterplots

slide-77
SLIDE 77

/15 15

Conclusion

Delaunay triangulation helps to optimize scatter plots maintaining the Delaunay triangulation is fast more than one good quality measure Please participate in our user study! www1.informatik.uni-wuerzburg.de/scatterplots