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
I am using fantaxtic to create a stacked barplot of relative abundances for each of my samples; however, I am having difficulties controlling the order of each block within each sample. I would like to have these blocks sorted by their abundances in descending or ascending order for easier viewing.
________________________________
From: Nelli Vardazaryan ***@***.***>
Sent: Friday, February 23, 2024 10:44:14 PM
To: gmteunisse/fantaxtic ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [gmteunisse/fantaxtic] Sorting stacked barplot based on abundance values (Issue #28)
Hey,
I am using fantaxtic to create a stacked barplot of relative abundances for each of my samples; however, I am having difficulties controlling the order of each block within each sample. I would like to have these blocks sorted by their abundances in descending or ascending order for easier viewing.
I am using the following code:
`top_nested <- nested_top_taxa(ps.rel,
top_tax_level = "Phylum",
nested_tax_level = "Genus",
n_top_taxa = 15,
n_nested_taxa = 15)
plot_nested_bar(ps_obj = top_nested$ps_obj,
top_level = "Phylum",
nested_level = "Genus")`
Screenshot.2024-02-23.at.13.42.01.png (view on web)<https://github.com/gmteunisse/fantaxtic/assets/121139156/df9e210e-e07e-4b5e-8774-2b96ad59ab5a>
Is there a way to change this default behavior?
—
Reply to this email directly, view it on GitHub<#28>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHBWS3W2KHHZCARIK6ZTDETYVBQG5AVCNFSM6AAAAABDWNHOC6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TANZSGU2TQOI>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Hey,
I am using fantaxtic to create a stacked barplot of relative abundances for each of my samples; however, I am having difficulties controlling the order of each block within each sample. I would like to have these blocks sorted by their abundances in descending or ascending order for easier viewing.
I am using the following code:
Is there a way to change this default behavior?
The text was updated successfully, but these errors were encountered: