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

View source: R/qc_functions.R

plotlySampleBarplotR 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)


zoecastillo/microbiomeExplorer documentation built on Sept. 11, 2022, 7:40 a.m.