Visualizing the Code Co-Occurrence Table

Sankey Diagram

Data Visualization is a great way to simplify the complexity of understanding relationships among data. The Sankey Diagram is one such powerful technique to visualize the association of data elements. Originally, Sankey diagrams were named after Irish Captain Matthew Henry Phineas Riall Sankey, who used this type of diagram in 1898 in a classic figure showing the energy efficiency of a steam engine. Today, Sankey diagrams are used for presenting data flows and data connections across various disciplines.

  • Sankey diagrams allow you to show complex processes visually, with a focus on a single aspect or resource that you want to highlight.

  • They offer the added benefit of supporting multiple viewing levels. Viewers can get a high level view, see specific details, or generate interactive views.

  • Sankey diagrams make dominant factors stand out, and they help you to see the relative magnitudes and/or areas with the largest contributions.

In ATLAS.ti, the Sankey diagram complements the Code Co-occurrence Table. As soon as you create a table, a Sankey diagram visualizing the data will be shown below the table.

Further Reading

As soon as you create a Co-occurrence table, a bar chart will be shown in the area below the table. You can change the bar chart to a Sankey Diagram by opening the drop-down menu für Layout. From there select Visualization / Sankey.

View Options for Co-Oc Table

Code Co-Oc Table Sankey Visualization The row and column entities of the table are represented in the Sankey model as nodes and edges, showing the strength of co-occurrence between the pairs of nodes. In the Code Co-occurrence table, the connecting pairs are codes for both rows and columns.

Edge: For each table cell containing a value, an edge is displayed between the diagram nodes. The thickness of the edges resemble the cell values of the table. Cells with value 0 are not displayed in the Sankey view.

The key to reading and interpreting Sankey Diagrams is to remember that the width is proportional to the quantity represented.

Layout

The Sankey diagram, similar to the network editor, applies a layout for its nodes and consequently to the edges connecting nodes to create an easy to comprehend visualization of the data. This basic layout places the selected entities (nodes in Sankey terminology) into vertical „layers“ with the row entities placed to the left and the column entities to the right. If nodes have incoming as well as outgoing links in the currently visible set of nodes, they will be placed in intermediate lanes or layers.

Interactivity

  • To display the quotations that are responsible for the co-occurrence of two entities, click on the connecting edge. This has the same effect as clicking a table cell. You see the quotations displayed in the Quotation Reader to the right.

  • If you hover over an edge, you see the number that is also displayed in the table cell, which are the number of times the pair of codes co-occur.

  • To support finding the correct link, moving the mouse highlights the hovered edges. After selecting an edge, the unselected edges are dimmed to further increase the visibility of the edge under consideration.

  • Selecting a node will highlight this node as well as all its incoming and outgoing edges. This makes it easy to spot areas of connectivity.

Removing edges

To remove a node from the diagram, right-click and select Remove from View.

In addition to the Remove from View options, a number of other options are available from the context menu, like for instance to change the code color.

The same may be accomplished by modifying the selection lists, but this is a bit „heavier“, and it may not be clear which entities need to be deselected.

Bar Chart

As soon as you create a Co-occurrence table, a bar chart will be shown in the area below the table. For the visualization as bar chart, it is often preferable to change the code colors. You may also want to switch around the rows and the columns. You find this option in the ribbon of the Code Co-occurrence Table.

To create the table below, the color of the two subcodes '1 child' and '2 or more' were changed to orange and blue. The result is of course the same - for people with two or more children the table shifts significantly to the right towards the codes coding the positive experiences. Or to put it the other way around, for those with one child, both positive and negative experiences are reported with somewhat more emphasis on the negative experiences.

Code Co-Oc Table Bar Chart If we change the rows and the columns, so that the number of children is on the x-axis, we get a more meaningful graph if we change the code colors for the subcodes of positive and negative effects. The negative effects have colors ranging from yellow to pink, the colors for positive effect range from green to blue.

Code Co-Oc Table Bar Chart

There is currently no legend. The one you see in the images are copy & pasted screenshots. Also, the code colours have to be changed manually. For a more convenient work with the graphics there will be further options in future updates.