You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello developer! I'm working with microbial abundance data. I used ggsankey to plot the number of bacteria classified under different taxonomic ranks. I was following this tutorial: https://r-charts.com/flow/sankey-diagram-ggplot2/ . So I used as input a taxonomy table:
column name: Domain | phylum | class | order | family | genus | species|
So what I did is to convert this data frame to the required data input format by using make_long() function over the taxonomy table:
Hello developer! I'm working with microbial abundance data. I used ggsankey to plot the number of bacteria classified under different taxonomic ranks. I was following this tutorial: https://r-charts.com/flow/sankey-diagram-ggplot2/ . So I used as input a taxonomy table:
column name: Domain | phylum | class | order | family | genus | species|
So what I did is to convert this data frame to the required data input format by using
make_long()
function over the taxonomy table:and finally made the sankey plot
and I got a nice looking sankey plot:
This is perfect but now I would like to plot the abundance per each bacteria under different taxonomic ranks.
I have two tables:
taxonomy table:
and the counts table pero each bacteria taxonomic rank
Is there a way to plot the abundance per each bacteria ?
The text was updated successfully, but these errors were encountered: