AnswerBun.com

How to generate Beta diversity boxplot from phyloseq object?

Bioinformatics Asked on September 25, 2021

I am working with profiled metagenomic taxonomy abundance data. I want to generate beta diversity (bray-curtis) boxplot from a phyloseq object where two groups (control and test) will be shown. Something like this figure:

enter image description here

How can I make it? Can anyone share any code or tutorial?

Thanks,
dpc

One Answer

You could convert the phyloseq object to a dataframe and just plot it using base R or ggplot2. I'm not exactly sure what the bray curtis df will be called but you can access it using the @ notation then convert with data.frame e.g.

bray_for_plot <- data.frame([email protected])

Answered by adamsorbie on September 25, 2021

Add your own answers!

Related Questions

Sequence alignment using BWT

1  Asked on December 5, 2021

   

Generating 3D coordinates error

1  Asked on December 2, 2021

   

Seurat DE t.test

1  Asked on December 2, 2021

       

Extract sequences from partial Header

2  Asked on November 24, 2021

     

Viral Metagenomics

1  Asked on November 10, 2021

     

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir