plots for ballot encoding