Interactive graphics for teaching

Karl Broman

Biostatistics & Medical Informatics, University of Wisconsin – Madison

kbroman.org
github.com/kbroman
@kwbroman

slides: bit.ly/Bro2014-11b

Inbred mice

2

Inbred mice

3

Human vs mouse

daviddeen.com

4

Intercross

5

Data

6

Genome scan for QTL

7

Genome scan for QTL

7

Random transposon mutagenesis

8

Random transposon mutagenesis

8

Random transposon mutagenesis

8

Random transposon mutagenesis

8

Random transposon mutagenesis

8

Random transposon mutagenesis

8

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Markov chain Monte Carlo

9

Genome-scale phenotypes

10

Heatmap of correlation matrix

11

Interactive genome scan

12

Permutation test

13

Permutation test

14

EM algorithm

15

Issues

time

16

D3 is awesome!

You just need to learn html, css, svg, and javascript.

And don’t forget .enter()

http://mbostock.github.io/d3/talk/20111018/collision.html

17

JSFiddle is awesome!

18

Coffeescript is awesome!

blob.attr("x", (d) -> d.x)

height = options?.height ? 500

19

Coffeescript is awesome!

blob.attr("x", (d) -> d.x)

height = options?.height ? 500

19

Summary

20

Resources

D3 by

CoffeeScript by Jeremy Ashkenas

D3 tutorials (and book) by Scott Murray

Eloquent JavaScript by Marijn Haverbeke

CoffeeScript book by Trevor Burnham

21

slides:   bit.ly/Bro2014-11b  

kbroman.org

github.com/kbroman

@kwbroman

22