Difference between revisions of "Managing attributes (tutorial)"

From visone manual
Jump to navigation Jump to search
(Selecting and deleting links below a threshold)
(Selecting and deleting links below a threshold)
Line 27: Line 27:
 
== Selecting and deleting links below a threshold ==
 
== Selecting and deleting links below a threshold ==
  
[[File:Attribute_manager_rename.png|200px|thumb|right]] It is convenient to rename the attribute encoding the ranks, since '''csv value''' is not a very intuitive name. To do this open the [[attribute manager]], select the radio button '''links''' in the top row, and select '''configuration''' on the left. Click in the text field where it currently says '''csv value''' and write, for instance, '''rank''' into it; press the Enter Key and click on the '''apply''' button.  
+
[[File:Attribute_manager_rename.png|200px|thumb|right]] It is convenient to rename the attribute encoding the ranks, since '''csv value''' is not a very intuitive name. To do this open the [[attribute manager]], select the radio button '''links''' in the top row, and select '''configuration''' on the left. Click in the text field where it currently says '''csv value''' and write, for instance, '''rank''' into it; press the Enter Key and click on the '''apply''' button.
 +
 
 +
Exemplarily, we want to keep only links that go to the '''top-3 friends'''. To select all links with a rank higher than 3 (i.e., all links that we want to delete) click on the menu '''links, selection...''' to open the [[Link_selection_dialog|link selection dialog]], shown below.
 +
 
 +
[[File:Links_selection_dialog.png]]
 +
 
 +
[[File:Newfrat01_top3.png|100px|thumb|right]] This dialog allows to select links dependent on graphical properties, on incidence to selected nodes, and much more. To select links dependent on attribute values, open the '''attributes''' drop-down menu, select '''rank''', check the box with the "greater than" sign ('''>'''), type '''3''' in the text field, and click on '''apply'''. This should select 221 out of 272 links (this information can be found in the lower left corner of the visone window) that can now be deleted by clicking on the menu '''links, delete links''', or from the [[link context menu]]. Clicking on the [[Quick_layout|quick layout button]] should show a network like the one on the right (the node labels can be activated by opening the [[attribute manager]] and checking the box of the node attribute '''id'''). It can be seen from this image that nodes 16 and 10 seem to be quite popular.
  
 
== Status layouts ==
 
== Status layouts ==

Revision as of 09:13, 30 January 2011

This trail introduces you to the full power of visone's attribute manager and shows you how to select elements dependent on attribute values. The attribute manager allows you, for instance, to convert tie strength to distance or rankings and vice versa, dichotomize networks, rescale tie weights and much more.


An exemplary dataset: Newcomb Fraternity Data

The Newcomb Fraternity Data (see Newcomb T. (1961). The acquaintance process. New York: Holt, Reinhard & Winston.) consits of 15 matrices recording weekly sociometric preference rankings from 17 men attending the University of Michigan in the fall of 1956. Each participant ranks all 16 others from best friend down to least friend. This data set is explained in more detail on the page Newcomb Fraternity (data).

To follow the steps illustrated in this trail, you should download the file Newfrat.zip (ZIP file containing the 15 matrices newfrat01.csv to newfrat15.csv), save it to your computer and decompress (unzip) it.


Import the CSV files

We start by importing one of the adjacency matrices (e.g., newfrat01.csv) into visone. Therefore use the menu file, open and select the file type .csv, .txt. Before importing the file it is important to set the correct options; the images below show the file view tab and the format tab of the import options dialog.

Import options file view newfrat.png Import options format newfrat.png

Newfrat01.png

Setting the options as shown in the format tab and clicking on ok opens the network which looks like the one shown on the right.

It can be seen that the network is complete (i.e., each pair of actors is connected by a bidirectional tie. All links have an attribute called csv value whose value corresponds to the respective entry in the adjacency matrix and, thus, is equal to the rank of the target node in the ordered list of friends of the source node.

Who is the most popular?

For illustration, we want to explore the popularity of actors with respect to the aggregated nominations of all others. Clearly, the number of incomming ties would not be a good measure for this, since each node receives exactly 16 links. The information about how popular actors are lies in the ranking of the ties. In the extremal case it would be possible that one actor (the most popular one) receives 16 links having rank equal to 1 and another actor receives 16 links labeled 16 (i.e., this actor would be the least friend for all others).

There are several possibilities to turn the weighted nominations into a one-dimensional measure for popularity: dichotomizing the network by defining a threshold that separates between the "friends" and the "non-friends"; computing a weighted indegree that takes into account the link weights; or combinations of the two. Some of these possibilities are illustrated below.

Selecting and deleting links below a threshold

Attribute manager rename.png

It is convenient to rename the attribute encoding the ranks, since csv value is not a very intuitive name. To do this open the attribute manager, select the radio button links in the top row, and select configuration on the left. Click in the text field where it currently says csv value and write, for instance, rank into it; press the Enter Key and click on the apply button.

Exemplarily, we want to keep only links that go to the top-3 friends. To select all links with a rank higher than 3 (i.e., all links that we want to delete) click on the menu links, selection... to open the link selection dialog, shown below.

Links selection dialog.png

Newfrat01 top3.png

This dialog allows to select links dependent on graphical properties, on incidence to selected nodes, and much more. To select links dependent on attribute values, open the attributes drop-down menu, select rank, check the box with the "greater than" sign (>), type 3 in the text field, and click on apply. This should select 221 out of 272 links (this information can be found in the lower left corner of the visone window) that can now be deleted by clicking on the menu links, delete links, or from the link context menu. Clicking on the quick layout button should show a network like the one on the right (the node labels can be activated by opening the attribute manager and checking the box of the node attribute id). It can be seen from this image that nodes 16 and 10 seem to be quite popular.

Status layouts

Modyfying attributes

Centrality on weighted networks