Skip to content
Snippets Groups Projects

add an argument to bars_fun to split graph as facet_wrap

Merged Philippe Ruiz requested to merge (removed):Splitbars_fun into master
1 unresolved thread
+ 1
0
@@ -131,6 +131,7 @@ bars_fun <- function(data = data, rank = "Genus", top = 10, Ord1 = NULL, Fact1 =
layout(xaxis = xform)
}else{
#raw abundance
plottitle = "Raw abundance"
p1=plot_ly(meltdat, x = ~sample.id, y = ~value, type = 'bar', name = ~variable, color = ~variable) %>% #, color = ~variable
layout(title="Raw abundance", yaxis = list(title = 'Raw abundance'), xaxis = xform, barmode = 'stack')
Loading