Clickme
Clickme is an R package that lets you create interactive visualizations in the browser directly from your R session.
That means you don't have to generate boring static plots ever again.
Install
Run the following R code:
install.packages("devtools") # you don't need to run this command if you already have the devtools package installed.
library(devtools)
install_github("clickme", "nachocab")
Examples
Let's take it out for a spin.
library(clickme)
clickme(points, rnorm(100)) # try zooming in and out, click the Show names button, hover over points
A more interesting example
data(microarray)
clickme(points, x = microarray$significance, y = microarray$logFC,
color_groups = ifelse(microarray$adj.P.Val < 1e-4, "Significant", "Noise"),
names = microarray$gene_name,
xlab = "Significance (-log10)", ylab = "Fold-change (log2)",
extra = list(Probe = microarray$probe_name))
Resources
- Points template parameters
- Developer guide (coming soon)
Acknowledgements
Thank you Mike Bostock. Making the D3.js library more accessible was my strongest motivation for developing Clickme.
Thank you Yihui Xie. The knitr R package has shown me the importance of building bridges across technologies, while also turning my scientific ramblings into reproducible work.
Thank you Hadley Wickam. The testthat R package has been consistently saving my butt since I started coding for a living.
There are other fine people trying to move visualization to the browser. Check out rCharts by Ramnath Vaidyanathan.