mappingtaxda {MicrobiotaProcess}R Documentation

generate the mapping data

Description

build the data.frame for 'geom_bar' of 'ggplot2', if the data.frame was built, you can visulize with 'ggbartax'.

Usage

mappingtaxda(
  data,
  topn = 30,
  count = FALSE,
  sampleda = NULL,
  factorLevels = NULL,
  plotda = TRUE
)

Arguments

data

data.frame, (nrow sample * ncol feature (factor))

topn

integer, the top number of abundance taxonomy(feature).

count

boolean, default is FALSE.

sampleda

data.frame, (nrow sample * ncol factor) the sample information, if the data doesn't contain the information.

factorLevels

list, the levels of the factors, default is NULL, if you want to order the levels of factor, you can set this.

plotda

boolean, default is TRUE, whether build the data.frame for 'geom_bar' of 'ggplot2'.

Value

the data.frame for ggbartax

Author(s)

Shuangbin Xu


[Package MicrobiotaProcess version 1.0.5 Index]