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/autonomics documentation built on Nov. 1, 2024, 5:47 a.m.