Dataviz makeover 2

Task 1: Static Organisation Graph

Data Wringling from Hands-on Exercise 10

Creating Network Objects from Hands-on Exercise 10

With reference to the organisation network graph in Section 6.1 of Hands-on Exercise 10, you are required to complete the following tasks:

1.1 Improve the code chunk used to create the organisation network graph by using the latest functions provided in ggraph2.0.

gggraph 2.0 releases a new feature called qgraph to create a quick Organisation Network Chart for exploratory purposes. It serves a similar purpose to the qmap to produce a quick map

Reference: https://cran.rstudio.com/web/packages/ggraph/news/news.html

1.2 Identify three aspects of the graph visualisation in Section 6.1 that can be improved.

  • Lack of labelling in general poses a difficulty for users to interpret any meaningful information without any categorisation by Weekday or Department.

  • The edges are difficult to differentiate due to thick edges and the black edges overlap with the darker shades nodes.

  • Nodes with lower centrality faces visibility problems as followed:

    • The size of nodes are not scaled properly
    • Lower closeness centrality leads to darker shades.

1.3 Provide the sketch of your alternative design.

Centrality Indices Chart Using ggraph

Centrality Indices Chart Using ggraph

1.4 Using appropriate ggraph functions, plot the alternative design.

Network graph by Department

The overall network graph does provide critical information regarding the key employees and its interaction with other employees. However, it does not display which department Mat, Birgitta, Hideki and Ruscella often interact with and the frequency of interaction as indicated by the weight of the edges. The thicker the edges, the higher the frequency of interaction.

The graph below is categorised/faceted by Department.

The chart derives key information as followed:

  • Engineering, Security and Administration are vital part of company’s day-to-day operation

  • Key employees for each department

    • Hideki is in charge of security department
    • Mat and Ruscella is in charge of Administration
    • Birgitta is in charge of Engineering
  • Executives department are rarely involved in day-to-day operation in the company and have very little interaction with each other

  • The interaction occurs more often among orange nodes employees.

  • Birgitta interact with 2 teams, which suggests there are 2 sub-departments within engineering

Task 2: Interactive Organisation Graph

Data Preparation from Hands-on Exercise 10

Based on Hands-on exercise 10, the visNetwork() looks for a field called “group”. Rename Department column to group

2.1 Improve the design of the graph by incorporating the following interactivity:

  • When a name is selected from the drop-down list, the corresponding node will not only be highlighted but also will be labelled. Furthermore, all the linked nodes of the selected node will also be labelled too.

  • When a node of the interactive graph is selected, the node will not only be highlighted but also will be labelled. Furthermore, all the linked nodes of the selected node will be labelled as well.

In the code chunk below, VisNodes is used to incorporate the font size and scaling. With regards to scaling, there are 2 properties:

  • Threshold - When zooming out, the font will be drawn smaller. It defines the minimum limit

  • maxVisible - When zooming in, the font will be drawn larger. It defines the maximum limit

2.2 Identify three aspects of the graph visualisation in Section 7.4 that can be improved.

  1. There is no information on department or allowing interaction by grouping the departments
  2. The colour has no definite meaning
  3. Lack of clarity - The edges have too many colours and no arrows to present the information sufficiently

2.3 Provide the sketch of your alternative design.

Interactive Network Graph

Interactive Network Graph

2.4 Using appropriate visNetwork functions, plot the alternative design.

The improvised chart will include:

  • The filtering by Employee Name and Department

  • The colour legend represents each department

  • The box shape is introduced to provide clearer labelling.

  • As the colour edges are confusing, a uniform colour is chosen for all edges to present infromation more effectively.

  • A directed graph is introduced, where all edges are connected from a node to another node. The purpose is to view how many interactions each employee has.

Ronald Lay

24 November 2019