Skip to content

Instantly share code, notes, and snippets.

View lgautier's full-sized avatar

Laurent Gautier lgautier

View GitHub Profile
@lgautier
lgautier / rpy2_ggplot2
Last active December 15, 2015 01:29
rpy2: ggplot2 figures from pandas dataframes
{
"metadata": {
"name": "Untitled0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@lgautier
lgautier / hctree.jl
Created December 27, 2012 14:56
Hierarchical clustering with the Julia-R bridge
require("Rif")
using Rif
initr()
m = R("matrix(rnorm(100), nrow=20)")
# A Julia matrix mj of type (Array{Float64, 2}) could
# be used with
# m = RArray{Float64,2}(mj)
d = call(R("dist"), [m])