Skip to content

Instantly share code, notes, and snippets.

View becarioenmoncloa's full-sized avatar

becarioenmoncloa

View GitHub Profile
@becarioenmoncloa
becarioenmoncloa / grafico_simulacion.R
Created September 15, 2011 19:35
Simulacion Elecciones 2011 (grafico)
## 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, ...) {
@becarioenmoncloa
becarioenmoncloa / do-file.do
Created September 15, 2011 19:34
Simulacion Elecciones 2011
*******************************************************************
** 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