R Network Visualization Workshop - Katya Ognyanova: Rutgers Prof., Network Researcher, Data …...

Preview:

Citation preview

Katherine Ognyanova (Katya) • Postdoctoral Research Fellow, The Lazer LabEmail: katya@ognyanova.net • Website: www.kateto.net • Twitter: @ognyanova

R Network Visualization WorkshopPOLNET 2015, Portland OR

Slide 2 www.kateto.net

Workshop data files, handout & R code: kateto.net/polnet2015

Slide 3 www.kateto.net

Selecting the right network visualization

Slide 4 www.kateto.net

1. Purpose

Slide 5 www.kateto.net

2. Audience

Visualization goals

The network as a map

Key actors and links

Relationship strength

Diffusion patterns

Structural properties

Communities

A B

Some network visualization types

Hive plots

Network Maps

Arc diagrams

Biofabric

Statistical charts

Heat maps

Arc Diagram (R package arcdiagram)

Les Miserables Arc Diagram, Gaston Sanchez 2013

Heatmap (base R, ggplot2)

Liu, Wang, Wang & Xie, PLOS ONE 2014

Hive plot (R package HiveR)

www.hiveplot.net, 2014

Slide 11 www.kateto.net

Network visualization controls

Network visualization controls

Color

Size

Position

Shape

Honorable mention: arrows (direction) and labels (identification)

Layout aesthetics

Minimize edge crossingNo Yes

Prevent overlapNo Yes

Uniform edge lengthNo Yes

SymmetryNo Yes

Slide 14 www.kateto.net

Some network examples

Adoption of topics in the US media system. Source: www.kateto.net

Classic „pretty spagetti bowl“ network viz

Stability in Afghanistan US military chart, via NYT.com, 2010

Internet Backbone: Each node represents an IP address. Source: Wikipedia

Linking patterns in the US political blogosphere. Source: Adamic & Glance (2005)

Twitter network, @OIIOxford. Source: Hogan, 2011

Wikipedia co-editing patterns among top editors in English. Source: Hogan, 2012

Map of the Web: Nodes represent websites. Source: internet-map.net

Flavor network and the principles of food preparing. Source: Ahn, Ahnert, Bagrow & Barabasi , 2012

Disease network: phenotype and disease gene associations. Source: Diseasome.eu, 2013

Network of Facebook friendships. Source: Facebook.com , 2010

Global Flights Network. Source: www.visualizing.org, 2012

Global Spread of H1N1 and human mobility. Source: gleamviz.org, 2011

Spatiotemporal Processes of Information Diffusion. Source: Cao, Lin, Sun, Lazer, Liu, Qu (2012)

The world according to Democrats in Congress – Lazer, Tsur, Ognyanova 2015

The world according to Republicans Congress – Lazer, Tsur, Ognyanova 2015

Slide 30 www.kateto.net

Quick note on network formats

A B C D E

A 0 0 0 0 0

B 1 0 0 0 1

C 1 0 0 1 1

D 0 0 0 0 0

E 0 0 0 0 0

A

CB D

E

Network formats: the Matrix

B A 1

B E 1

C A 1

C E 1

C D 1

A

CB D

E

Source Destination Weight

Note: Weights are optional.

Network formats: the Edgelist

B A E

C A D E

A

CB D

E

Source Destinations

Network formats: the Nodelist

A yellow 1

B green 3

C orange 5

D yellow 3

E blue 1

A

CB D

E

Node ID Attr1 Attr2

Network formats: Node attributes

Network types: adjacency and affiliation

Adjacency(one-mode graph)

Affiliation(two-mode / bipartite graph)

PaulKate

HP

Jill

MS

JohnJim

Paul

Kate

John Jill

Jim

Contact Information:Katherine OgnyanovaE-mail: katya@ognyanova.netWebsite: www.kateto.net

Recommended