Skip to content

Instantly share code, notes, and snippets.

View briandk's full-sized avatar

Brian A. Danielak briandk

View GitHub Profile
@briandk
briandk / Vagrantfile
Last active September 22, 2015 21:52
Three Easy Steps to a Reproducible R Environment
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@briandk
briandk / geom-rug-alt-demonstration.R
Created February 20, 2011 15:47
This file demonstrates that a new ggplot2 geom I've created--which puts rug fringes on the top/right--seems to plot just fine when sourced from a single script.
geom_rug_alt <- function(mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
...
)
{
GeomRugAlt$new(mapping = mapping,
data = data,
stat = stat,