spread_abundance_by: Spread abundance by a column. Take a data.frame from a sleuth...

View source: R/plotting_functions.R

spread_abundance_byR Documentation

Spread abundance by a column. Take a data.frame from a sleuth object (e.g. obs_raw) and cast it into a matrix where the rows are the target_ids and the columns are the sample ids. The values are the variable you are "spreading" on.

Description

Spread abundance by a column. Take a data.frame from a sleuth object (e.g. obs_raw) and cast it into a matrix where the rows are the target_ids and the columns are the sample ids. The values are the variable you are "spreading" on.

Usage

spread_abundance_by(abund, var, which_order)

Arguments

abund

the abundance data.frame from a sleuth object

var

a character array of length one. The variable for which to get "spread" on (e.g. "est_counts").


nodrogluap/gumshoe documentation built on Feb. 28, 2023, 6:15 p.m.