stat_rare {MicrobiotaProcess} | R Documentation |
generating the data of ggrarecurve.
stat_rare(data, chunks = 400, sampleda, factorLevels, plotda = TRUE)
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'. |
data.frame for ggrarecurve.
Shuangbin Xu