Importing Packages for DataViz Makeover 2

1 - Task 1: Static Organizational Graph

Importing Data

## # A tbl_graph: 54 nodes and 1456 edges
## #
## # A directed multigraph with 1 component
## #
## # Edge Data: 1,456 x 4 (active)
##    from    to Weekday Weight
##   <int> <int> <ord>    <int>
## 1    40    41 Tuesday     23
## 2    40    43 Tuesday     19
## 3    41    43 Tuesday     15
## 4    41    40 Tuesday     14
## 5    42    41 Tuesday     13
## 6    42    40 Tuesday     12
## # ... with 1,450 more rows
## #
## # Node Data: 54 x 4
##      id label           Department     Title           
##   <dbl> <chr>           <chr>          <chr>           
## 1     1 Mat.Bramar      Administration Assistant to CEO
## 2     2 Anda.Ribera     Administration Assistant to CFO
## 3     3 Rachel.Pantanal Administration Assistant to CIO
## # ... with 51 more rows

With reference to the organisation network graph in Section 6.1 of Hands-on Exercise 10, you are required to complete the following tasks:
    Improve the code chunk used to create the organisation network graph by using the latest functions provided in ggraph2.0.

Identify three aspects of the graph visualisation in Section 6.1 that can be improved.
  1. Problem: Unclear which node is linked to which title
    Solution: Label the titles to respective nodes
  2. Problem: Unclear which node is linked to which department
    Solution: Highlight highest betweenness centrality and highest closeness centrality
  3. Problem: Color used for edges and nodes were confusing
    Solution: Variate the colors used for edges and nodes

Provide the sketch of your alternative design.
Using appropriate ggraph functions, plot the alternative design.

2 - Task 2: Interactive Organisation Graph

With reference to the organisation network graph in Section 7.4 of Hands-on Exercise 10, you are required to complete the following tasks:
    Improve the design of the graph by incorporating the following interactivity:
  1. 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.
  2. 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.
Identify three aspects of the graph visualisation in Section 7.4 that can be improved.
  1. Problem: No weightage or direction displayed in each relationship
    Solution: Adding arrows and labels to show direction and weightage of each relationship
  2. Problem: Unable to select the group of interaction in each relationship
    Solution: Highlight the relationship based on the group selected
  3. Problem: Lack of information to allow users understand the relationship better
    Solution: Add Job Title into the relationship

Provide the sketch of your alternative design.

Using appropriate visNetwork functions, plot the alternative design.