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. The improvised chart will include the labels such as title, text for each node - - Fan out the overlapping multiplex edges to improve readibility 1.3 Provide the sketch of your alternative design.

1.4 Using appropriate ggraph functions, plot the alternative design. “#BDBDBD”

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 proterties:

  • 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

Lee Sunho

2019-11-22