Skip to content

Instantly share code, notes, and snippets.

View robinsones's full-sized avatar

Emily Robinson robinsones

View GitHub Profile
@hafen
hafen / trelliscopejs-output.R
Created April 10, 2017 22:06
writing trelliscopejs
library(trelliscopejs)
library(ggplot2)
qplot(cty, hwy, data = mpg) +
geom_abline(alpha = 0.5) +
xlim(7, 37) + ylim(9, 47) + theme_bw() +
facet_trelliscope(~ manufacturer + class, nrow = 2, ncol = 4, path = "/tmp/myplot")
# this places a self-contained trellisopejs display in the directory /tmp/myplot
list.files("/tmp/myplot")