generates a density plot based on the relationships in relations.
Details and Options
relations is a list or association of index pairs and agreement factors. This is an array of two indices for each key and a relationship factor (a real number where negative is disagreement and positive is agreement) for each value or a list of such associations.
The option Steps→steps (default 100) generates a density plot after running the alignment simulation steps times. It must be set to a positive integer, and best results are obtained when steps >= 100.
The resulting plot is a heatmap of agreement and disagreement in a community, where individuals that agree clump together in high-density areas. If a list of associations was provided the heatmap is two dimensional and visualizes each association starting from the bottom and going upward.
Plot the alignment of 30 individuals over ten time points:
In[3]:=
In[4]:=
Out[4]=
Scope (1)
Steps (1)
Each alignment plot is generated by stepping each individual in either direction until the forces (attraction for agreement and repulsion for disagreement) are balanced. Increasing the number of steps improves the accuracy of the plot, but returns diminish as steps increases:
In[5]:=
Out[6]=
Possible Issues (1)
Particularly volatile data can lead to artifacts in the plot:
In[7]:=
Out[12]=
Neat Examples (1)
Visualize the level of agreement in the voting record of 50 members of Congress on four particular votes: