This package implements several well-known party polarization measures for revealed preference data sets with binary responses (e.g. vote matricess). Please refer to package manual polarization_0.9.0.pdf for code examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.