This file contains 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 resultados de las elecciones de 2011 | |
## Autor: becarioenmoncloa.com | |
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( | |
function(x = 0, y = 0, width = 1, height = 1, ...) { |
This file contains 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 de las elecciones de 2011 | |
** Autor: becarioenmoncloa.com | |
******************************************************************* | |
clear all | |
set more off | |
set mem 300m | |
insheet using "http://www.becarioenmoncloa.com/datos_simulacion.csv", comma clear |