plotlySampleBarplot: Function plotting a barplot showing number of OTUs per...

Description Usage Arguments Value Examples

View source: R/qc_functions.R

Description

Function plotting a barplot showing number of OTUs per samples

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plotlySampleBarplot(
  MRobj,
  col_by = NULL,
  xaxisTitle = "",
  yaxisTitle = "",
  pwidth = 600,
  pheight = 450,
  sortbyfreq = FALSE,
  pheno_sort = NULL,
  x_levels = NULL
)

Arguments

MRobj

containing data to plot

col_by

phenotype to color bars by; default is NULL

xaxisTitle

name of xaxis; default is ""

yaxisTitle

name of yaxis; default is ""

pwidth

overall plot width; default is 600

pheight

overall plot height; default is 450

sortbyfreq

boolean determining if bars should be sorted by frequency; default is FALSE

pheno_sort

order of pheno levels to sort by; ignored if sortbyfreq is TRUE

x_levels

character vector holding x values in order to be shown

Value

plotly plot object

Examples

1
2
data("mouseData", package = "metagenomeSeq")
plotlySampleBarplot(mouseData)

microbiomeExplorer documentation built on Nov. 8, 2020, 8:16 p.m.