plot_matrix: Plot binary matrix

plot_matrixR Documentation

Plot binary matrix

Description

Plot binary matrix

Usage

plot_matrix(mat)

Arguments

mat

matrix

Value

no return (base R plot)

Examples

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)

bhagwataditya/importomics documentation built on Oct. 29, 2024, 3:19 p.m.