plotlySampleBarplot {microbiomeExplorer} | R Documentation

## Function plotting a barplot showing number of OTUs per samples

### Description

Function plotting a barplot showing number of OTUs per samples

### Usage

    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

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

[Package microbiomeExplorer version 1.4.0 Index]