Code Monkey home page Code Monkey logo

clickme's Introduction

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

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.

clickme's People

Contributors

nachocab avatar kbroman avatar timelyportfolio avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.