tree_2nd_n26 <- groupClade(tree_2nd, node=26)
p<-ggtree(tree_2nd_n26,branch.length = "none",aes(color=group))
p2<-facet_plot(p, panel = 'Taxa Relative Abundance', data = L6_freq_long_new, geom = geom_barh, mapping = aes(x = freq, fill = as.factor(OTU.ID)), stat='identity')
p2+scale_fill_manual(values= taxonPalette)+scale_color_manual(values=c("blue","red"))
p2<-facet_plot(p, panel = 'Taxa Relative Abundance', data = L6_freq_long_new, geom = geom_barh, mapping = aes(x = freq, fill = as.factor(OTU.ID)), stat='identity',
color='black')
--
G Yu, DK Smith, H Zhu, Y Guan, TTY Lam*. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data, Methods in Ecology and Evolution, 2017, 8(1):28-36. doi:10.1111/2041-210X.12628
Homepage: https://guangchuangyu.github.io/ggtree
---
You received this message because you are subscribed to the Google Groups "ggtree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree+unsubscribe@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/6a174015-402e-48be-b06e-29078dd6ebb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree...@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/6a174015-402e-48be-b06e-29078dd6ebb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree+unsubscribe@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/45eed7ba-18b8-43b4-83fe-011063b90997%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/45eed7ba-18b8-43b4-83fe-011063b90997%40googlegroups.com.
tr <- rtree(20)
cls <- list(c1=c(3, 5, 6, 1, 9, 11, 15, 17, 12, 19))tr <- groupOTU(tr, cls)
p <- ggtree(tr, size=1.5, branch.length = "none") + aes(color=group) + scale_color_manual(values=c('#DECF3F', '#5DA5DA'))
d4 = data.frame(id=rep(tr$tip.label, each=20), val=as.vector(sapply(1:20, function(i) rnorm(20, mean=i))))
p2 <- facet_plot(p, panel="Boxplot", data=d4, geom_boxploth, mapping = aes(x=val, group=label, fill = group)) p2 <- p2 + scale_fill_manual(values=c('#DECF3F', '#5DA5DA'))p2 To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree...@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/6a174015-402e-48be-b06e-29078dd6ebb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.