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)[, .(Subject, subgroup)]
mat$present <- 1
mat %<>% data.table::dcast(Subject ~ subgroup, value.var  = 'present', fill = 0)
mat %<>% dt2mat()
plot_matrix(mat)

bhagwataditya/importomics documentation built on Nov. 28, 2024, 8:28 a.m.