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)[, .(Subject, subgroup)]
mat$present <- 1
mat %<>% data.table::dcast(Subject ~ 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.