1
00:00:00,500 --> 00:00:02,700
So I'll spend a little bit
of time talking about,

2
00:00:02,700 --> 00:00:05,830
some very important representations.

3
00:00:05,830 --> 00:00:10,038
So much of our data,
is represented in the hierarchical format.

4
00:00:10,038 --> 00:00:12,800
And so graphs and

5
00:00:12,800 --> 00:00:16,960
trees are very often on the most
common ways that we represent data.

6
00:00:18,000 --> 00:00:22,410
So I think it's valuable for us to talk
just briefly about some of the different

7
00:00:22,410 --> 00:00:27,990
options that we have for thinking about
representing graph and tree data.

8
00:00:27,990 --> 00:00:33,520
So the most common way that
we represent data in a graph

9
00:00:33,520 --> 00:00:38,510
format excuse me, in a tree is something
that we call a node link diagram.

10
00:00:38,510 --> 00:00:45,110
And a node link diagram really takes
each different node that has children,

11
00:00:45,110 --> 00:00:49,470
and represents the children
at an indented way.

12
00:00:49,470 --> 00:00:54,760
So in this particular node linked diagram,
the root of the tree is all the way

13
00:00:54,760 --> 00:01:01,600
to the left, and each of the different
leaves are shown at the second column and

14
00:01:01,600 --> 00:01:05,080
the third column, and far right
you'll see all the different leaves.

15
00:01:06,210 --> 00:01:09,660
Well one of the most common
things I think I'm asked is,

16
00:01:09,660 --> 00:01:14,720
how do I squeeze more data into my my,
my tree.

17
00:01:14,720 --> 00:01:18,830
Well one of the ways is
by rather than using

18
00:01:20,020 --> 00:01:25,320
a single hierarchy and making it flat.

19
00:01:25,320 --> 00:01:31,470
But we can do here is have a radial
layout, and this radial layout

20
00:01:31,470 --> 00:01:38,130
allows the same amount of data, excuse me,
a significantly higher amount of data

21
00:01:38,130 --> 00:01:43,220
to be presented and it's shown in a way
that all of it can be visible at once.

22
00:01:45,270 --> 00:01:51,410
And this idea of the node
link diagram can also be used

23
00:01:51,410 --> 00:01:56,720
in this idea that here called thread arcs

24
00:01:56,720 --> 00:02:02,500
that are used to show networks
that occur over time.

25
00:02:02,500 --> 00:02:07,550
And so you can show a single note, and
the way that its children propagate.

26
00:02:08,650 --> 00:02:11,930
This is very interesting
here in thread arc.

27
00:02:11,930 --> 00:02:17,050
The idea is that this particular
representation is used to show the way

28
00:02:17,050 --> 00:02:22,530
that a particular conversational
threads are propagating.

29
00:02:22,530 --> 00:02:28,070
You can see for example on
the conversation in the middle on the left

30
00:02:28,070 --> 00:02:33,160
that an original conversation has started
and then without comment another one, and

31
00:02:33,160 --> 00:02:34,450
then another one, and another one.

32
00:02:34,450 --> 00:02:38,100
And then finally someone
comments on the very last one.

33
00:02:38,100 --> 00:02:43,760
Whereas if you look at for example,
the one on the top right, the first,

34
00:02:43,760 --> 00:02:50,400
the original comment, then spawns one,
two, three, four, five comments.

35
00:02:50,400 --> 00:02:53,396
And then the second comment
has a child unto itself.

36
00:02:53,396 --> 00:02:58,464
Separately, if you're interested in

37
00:02:58,464 --> 00:03:04,520
showing not just the relationships.

38
00:03:04,520 --> 00:03:07,780
So the things that these graphs
are excellent at showing

39
00:03:07,780 --> 00:03:10,430
is the hierarchical relationship.

40
00:03:10,430 --> 00:03:15,600
But sometimes the relationship does not
just include one of containment, but

41
00:03:15,600 --> 00:03:19,390
it also includes one of magnitude.

42
00:03:19,390 --> 00:03:22,080
So for this particular kind of diagram,

43
00:03:22,080 --> 00:03:25,730
something here called a tree
map can become very useful.

44
00:03:25,730 --> 00:03:33,040
So a tree map is also a hierarchical
diagram like the tree, but

45
00:03:34,600 --> 00:03:41,190
each child node is organized,
according to the area.

46
00:03:41,190 --> 00:03:46,890
So you can see here in the top left,
that's a node with no children.

47
00:03:46,890 --> 00:03:52,540
Whereas, go one below it,
that node has three children and

48
00:03:52,540 --> 00:03:57,079
the one on the bottom has a magnitude
far greater than the two above it.

49
00:03:58,360 --> 00:04:00,958
So something like this
is occasionally used.

50
00:04:00,958 --> 00:04:02,500
You might have seen something like this,
for

51
00:04:02,500 --> 00:04:06,010
example, on a disk defragmenting program.

52
00:04:07,980 --> 00:04:13,910
Another way that networks are often shown
is something here called a chord diagram.

53
00:04:13,910 --> 00:04:22,020
And this chord diagram allows you to
actually show relationships and magnitude.

54
00:04:22,020 --> 00:04:26,920
And so
this one would work by mousing over one of

55
00:04:26,920 --> 00:04:30,590
the particular edges which
are shown on the outside, and

56
00:04:30,590 --> 00:04:37,250
the relationships are shown by arcs
connecting each of the nodes and the width

57
00:04:37,250 --> 00:04:42,530
of the arc is proportional to the
magnitude, the weight of the connection.

58
00:04:42,530 --> 00:04:48,520
And so you can see here, this particular
diagram shows a hierarchy and

59
00:04:48,520 --> 00:04:50,400
magnitude at the same time.

60
00:04:51,690 --> 00:04:54,660
Another way that you might care
to show something like this,

61
00:04:54,660 --> 00:04:57,250
is something called the Sankey diagram.

62
00:04:57,250 --> 00:05:03,860
That the Sankey Diagram is
designed to show the magnitude and

63
00:05:03,860 --> 00:05:07,240
flow through a network at the same time.

64
00:05:07,240 --> 00:05:15,560
So, this particular diagram shows how
energy is produced and consumed in the UK.

65
00:05:16,910 --> 00:05:20,210
So, what you can see,
for example, is on top,

66
00:05:20,210 --> 00:05:25,530
nuclear is the principle producer
of electricity in the UK.

67
00:05:25,530 --> 00:05:29,490
And if you go, and
you can see that about half way down,

68
00:05:29,490 --> 00:05:35,160
there is a bar that represents a node
where transportation, excuse me,

69
00:05:35,160 --> 00:05:40,830
thermal generation is then used,
and, and that is the consumer of

70
00:05:40,830 --> 00:05:46,430
nuclear power, and that is then passed
on to the right to downstream consumers.

71
00:05:46,430 --> 00:05:51,070
So what you can do is you can see how,
for example, things like oil imports and

72
00:05:51,070 --> 00:05:53,760
oil reserves on the bottom left

73
00:05:53,760 --> 00:05:59,430
are then passed into liquid
form to various refineries.

74
00:05:59,430 --> 00:06:02,390
And you can see the magnitude
of the bar here,

75
00:06:02,390 --> 00:06:06,830
excuse me the height of the bar represents
the magnitude of the relationship.

76
00:06:07,980 --> 00:06:12,300
So you can see that there's a number of
ways that one could take the same data,

77
00:06:12,300 --> 00:06:18,097
that is included in a graph structure and
it choose to

78
00:06:18,097 --> 00:06:24,350
highlight hierarchy, time, and magnitude.

79
00:06:25,480 --> 00:06:29,820
And depending on how you would choose
to differently represent them,

80
00:06:29,820 --> 00:06:35,210
if you want to show hierarchy and
magnitude, then the tree map is for you.

81
00:06:35,210 --> 00:06:40,310
If you want to show time and hierarchy,
then think about a thread arc.

82
00:06:40,310 --> 00:06:45,250
If you want to show a deep number
of hierarchical relationships,

83
00:06:45,250 --> 00:06:46,930
then think about the node link diagram.

84
00:06:47,950 --> 00:06:50,890
And if you're interested
in showing hierarchy and

85
00:06:50,890 --> 00:06:56,310
magnitude, think about the core diagram.

86
00:06:56,310 --> 00:06:59,260
And if you're interested
in showing magnitude and

87
00:06:59,260 --> 00:07:04,230
time, then think about a Sankey diagram.

88
00:07:04,230 --> 00:07:07,780
But each of this different
methods allows you

89
00:07:07,780 --> 00:07:13,720
to take some of the different dimensions
of date and bring them to the fore front.

90
00:07:13,720 --> 00:07:17,730
So let's connect this back to some of
the things that we discussed previously.

91
00:07:17,730 --> 00:07:21,990
So, something like a tree map, right?

92
00:07:21,990 --> 00:07:27,170
A tree map takes, so, what are the most
visible elements in the tree map?

93
00:07:27,170 --> 00:07:28,090
Area.

94
00:07:28,090 --> 00:07:32,440
In the tree map the magnitude of the leaf

95
00:07:32,440 --> 00:07:36,860
is proportional to the area that
it contains, that it encloses.

96
00:07:38,280 --> 00:07:44,340
And if you think back to our few chapters
ago where we described what are the most

97
00:07:44,340 --> 00:07:51,410
salient features to human perception when
it comes to identifying differences?

98
00:07:51,410 --> 00:07:52,570
It's area, right?

99
00:07:52,570 --> 00:07:57,620
It was shape, excuse me,
it was location and area.

100
00:07:57,620 --> 00:08:04,300
So, by choosing to represent
magnitude in area,

101
00:08:04,300 --> 00:08:09,530
the tree map is making that
magnitude the most salient feature.

102
00:08:09,530 --> 00:08:15,380
Whereas, if you look at how
magnitude is represented in

103
00:08:15,380 --> 00:08:22,390
the chord diagram, it's actually
a secondary feature to layout.

104
00:08:22,390 --> 00:08:28,630
And what you can see is each of the nodes
on the edge the size of the node and

105
00:08:28,630 --> 00:08:34,780
it's relative location
to nodes next to it,

106
00:08:34,780 --> 00:08:38,920
demonstrate the,
those are the more salient features.

107
00:08:38,920 --> 00:08:46,010
So the things that stand out in this graph
the most are the edges around the outside,

108
00:08:46,010 --> 00:08:48,900
and the relationships that
are drawn between them.

109
00:08:50,630 --> 00:08:57,270
The Sankey diagram does the same thing for
relationship and it's encoding time and

110
00:08:57,270 --> 00:09:02,450
it's giving time,
in this particular example, to the x-axis.

111
00:09:02,450 --> 00:09:05,880
So when we look at this and
we say why is time so

112
00:09:05,880 --> 00:09:11,230
salient, it's because they've
taken position, the x-axis, and

113
00:09:11,230 --> 00:09:16,660
turned it into one of the most
meaningful features of the graph itself.

114
00:09:16,660 --> 00:09:20,970
So if you're thinking about how do
I choose which of the following,

115
00:09:22,220 --> 00:09:27,240
types of representation I,
to, to use for my own data.

116
00:09:27,240 --> 00:09:31,840
You can think about what
are the particular dimensions that have

117
00:09:31,840 --> 00:09:33,750
the most importance, and

118
00:09:33,750 --> 00:09:38,910
then which of these different encodings,
bring out those dimensions.

119
00:09:38,910 --> 00:09:43,200
And that's one of the ways that
you will end up looking for

120
00:09:43,200 --> 00:09:49,000
the ways that the most important parts of
your data become the most perceptible.

