Code for the paper: "Graphical Analysis of Agent-Based Opinion Formation Models"

July 16 2023

Authors:
Carlos Andres Devia
Giulia Giordano

This directory contains all the scripts necessary to recreate the Agreement Plots presented in the main paper and the supplementary information file. 

All the code is executed by running the script 'GlobalScript_AgreementPlot.m'

There are two ways to do this:

1.) You want to obtain the figures presented in the paper, using the data we processed.
Then, much of the code will not be executed, as the program will simply recreate the figures from existing data. This is of course much faster.
To do this, move the .mat files contained in the directory ./Resulting_Data to this directory and run the script 'GlobalScript_AgreementPlot.m'.

2.) You want to create new Agreement Plot figures, using new data.
This will be slower as more computations are needed.
In this case, there is no need to modify the contents of this directory. Simply run the 'GlobalScript_AgreementPlot.m' script.

Parts of the code may include the use or/and modification of the following functions:

- deg2rad [1]
- extractpositional [1]
- fractions [1]
- simpletri [1]
- ternaxes [1]
- terncontour [1]
- terncoords [1]
- ternlabel [1]
- ternpcolor [1]
- ternplot [1]
- ternsurf [1]
- vertexlabel [1]

References

[1] Carl Sandrock (2023). alchemyst/ternplot (https://github.com/alchemyst/ternplot), GitHub. (GNU GENERAL PUBLIC LICENSE)
