This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # @author: Bommarito Consulting, LLC; http://michaelbommarito.com/ | |
| # @date: May 21, 2012 | |
| # @email: michael@bommaritollc.com | |
| # @packages: ggplot2, plyr | |
| # Clear and import. | |
| rm(list=ls()) | |
| library(ggplot2) | |
| library(plyr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## R-file: simulacion de distribucion de diputados en funcion del tamano | |
| ## del Congreso de Diputados | |
| ## Autor: Pablo Barbera (NYU) | |
| library(ggplot2) | |
| theme_L_border <- function(colour = "black", size = 1, linetype = 1) { | |
| # From Rudolf Cardinal, March 2011, http://www.psychol.cam.ac.uk/statistics/R/ | |
| # use with e.g.: ggplot(...) + opts( panel.border=theme_L_border() ) + ... | |
| structure( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ******************************************************************* | |
| ** DO-FILE: simulacion de resultados elecciones 2008 | |
| ** cambiando el numero de diputados | |
| ** Autor: Pablo Barbera | |
| ******************************************************************* | |
| clear all | |
| set more off | |
| set mem 300m |