mat = matrix(rnorm(32), nrow = 4)
f = anno_density(mat)
grid.newpage(); f(1:8)
f = anno_density(mat, which = "row", type = "violin")
grid.newpage(); f(1:4)
lt = lapply(1:4, function(i) rnorm(8))
f = anno_density(lt, type = "heatmap")
grid.newpage(); f(1:4)
Run the code above in your browser using DataLab