R scripts commonly used for polarization analysis