stat_rare {MicrobiotaProcess} | R Documentation

## mapping data of ggrarecurve

### Description

generating the data of ggrarecurve.

### Usage

    stat_rare(data, chunks = 400, sampleda, factorLevels, plotda = TRUE)

### Arguments

`data` | data.frame,(nrow sample * ncol taxonomy (feature) or and factor)
`chunks` | integer, the number of subsample in a sample, default is 400.
`sampleda` | data.frame, (nrow sample * ncol factor)
`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

data.frame for ggrarecurve.

### Author(s)

Shuangbin Xu

[Package MicrobiotaProcess version 1.0.5 Index]