plot_matrix | R Documentation |
Plot binary matrix
plot_matrix(mat)
mat |
matrix |
no return (base R plot)
file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
object <- read_metabolon(file)
mat <- sdt(object)[, .(replicate, subgroup)]
mat$present <- 1
mat %<>% data.table::dcast(replicate ~ subgroup, value.var = 'present', fill = 0)
mat %<>% dt2mat()
plot_matrix(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.