Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a density plot of opinion alignment from a list of relations
ResourceFunction["AlignmentClusterPlot"][relations] generates a density plot based on the relationships in relations. |
Plot the alignment of 5 individuals:
In[1]:= | ![]() |
In[2]:= | ![]() |
Out[2]= | ![]() |
Plot the alignment of 30 individuals over ten time points:
In[3]:= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
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]= | ![]() |
Particularly volatile data can lead to artifacts in the plot:
In[7]:= | ![]() |
Out[12]= | ![]() |
Visualize the level of agreement in the voting record of 50 members of Congress on four particular votes:
In[13]:= | ![]() |
Out[14]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License