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 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -157,7 +157,7 @@ bars_fun <- function(data = data, rank = "Genus", top = 10, Ord1 = NULL, Fact1 =
keep = TRUE) %>%
subplot(nrows = 1, shareX = TRUE, shareY=TRUE, titleX = FALSE) %>%
layout(title=plottitle,
layout(title=plottitle, xaxis = list(title = glue("{Fact1} = {unique(meltdat[, Fact1])[1]}")),
xaxis = list(title = glue("{Fact1} = {unique(meltdat[, Fact1])[1]}")),
yaxis = list(title = 'Relative abundance'),
barmode = 'stack')
Loading