plotlySampleBarplot | R Documentation |
Function plotting a barplot showing number of OTUs per samples
plotlySampleBarplot( MRobj, col_by = NULL, xaxisTitle = "", yaxisTitle = "", pwidth = 600, pheight = 450, sortbyfreq = FALSE, pheno_sort = NULL, x_levels = NULL )
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 |
plotly plot object
data("mouseData", package = "metagenomeSeq") plotlySampleBarplot(mouseData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.