The new spatial model of voting in Spain Replication code for the post "The new spatial model of voting in Spain".