Skip to content


Subversion checkout URL

You can clone with
Download ZIP


minor changes to readme,md for highlighting, and noting dependencies #3

wants to merge 3 commits into from

1 participant


When I first ran the package, I needed to install json, and a newer than CRAN version of knitr... adding notes to that effect.

Also added ```S to highlight the examples


just adding the rjson and df2json packages to imports... great package!

@tbates tbates closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 21, 2013
  1. @tbates

    add ```S to highlight code; add note that json and new knitr are requ…

    tbates authored
    …ired to avoid consternation
  2. @tbates
  3. @tbates

    just adding the missing "df3 <- matrix(rnorm(200), ncol = 8, nrow = 25)"

    tbates authored
    also normalising spacing around "="
This page is out of date. Refresh to see the latest.
Showing with 18 additions and 9 deletions.
  1. +3 −1 DESCRIPTION
  2. +15 −8
@@ -8,7 +8,9 @@ Description: The default interactivity comes from the D3 javascript library.
yaml (>= 2.1.7),
- stringr
+ stringr,
+ rjson,
+ df2json
@@ -12,38 +12,46 @@ Want to learn more? [See the wiki](
You can install clickme by running this in your R session:
install.packages("devtools") # In case you don't have it already installed
install_github("clickme", "nachocab")
-Now you can try the examples:
+Other packages you might need include [rjson][] and a new version of [knitr][]
+install.packages("knitr", repos = "", type = "source")
+Now you can try the examples.
+Your browser will open a new tab for each example. The first one should look something like [this](
# visualize a force-directed interactive graph
items <- paste0("GENE_", 1:40)
n <- 30
-df1 <- data.frame(a=sample(items, n, replace=TRUE), b=sample(items, n, replace=TRUE), type=sample(letters[1:3], n, replace=TRUE))
+df1 <- data.frame(a = sample(items, n, replace = TRUE), b = sample(items, n, replace = TRUE), type = sample(letters[1:3], n, replace = TRUE))
clickme(df1, "force_directed")
# visualize a line plot that allows zooming along the x-axis
n <- 30
cities <- c("Boston", "NYC", "Philadelphia")
-df2 <- data.frame(name=rep(cities, each=n), x=rep(1:n,length(cities)), y=c(sort(rnorm(n)),-sort(rnorm(n)),sort(rnorm(n))))
+df2 <- data.frame(name = rep(cities, each = n), x = rep(1:n, length(cities)), y = c(sort(rnorm(n)), -sort(rnorm(n)), sort(rnorm(n))))
clickme(df2, "line_with_focus")
# visualize an interactive heatmap alongside a parallel coordinates plot
+df3 <- matrix(rnorm(200), ncol = 8, nrow = 25)
rownames(df3) <- paste0("GENE_", 1:25)
colnames(df3) <- paste0("sample_", 1:8)
clickme(df3, "longitudinal_heatmap") # you will need to have a local server running for this example to work
-Your browser will open a new tab for each example. The first one should look something like [this](
## Acknowledgements
Thank you **Mike Bostock** for creating the [D3.js][] library. Being able to use it more effectively is the main reason why I developed clickme.
@@ -55,5 +63,4 @@ If you can see the potential of clickme as a bridge between the R and JS worlds,
Something went wrong with that request. Please try again.