Comments (3)
Hi Pau,
Thanks for using fantaxtic! fantaxtic_bar
has unfortunately been deprecated. However, all its functionality and more has been reimplemented in plot_nested_bar
- have a look at the new documentation on the GitHub page.
In plot_nested_bar
, you can supply a character vector with the sample names (from sample_names(ps)
) in the desired x-axis order to the sample_order
argument.
If you prefer to use fantaxtic_bar
, I believe it should be possible to change to x-axis order by setting order_alg = 'as.is'
, which should plot your samples along the x-axis in the order in which they are encountered in the data. I do really recommend to use the updated functionality, as I can't guarantee that fantaxtic_bar
still works as intended.
Let me know if this has resolved your issue.
from fantaxtic.
Thank you, I'm really enjoying this new function. My issue now is I need to specify colors for each order that is graphed so I can compare across samples. I tried to do this but it just used its own default colors:
plot_nested_bar(ps_obj = top_asv$ps_obj, top_level = "Phylum",
nested_level = "Family",
palette=c(Frankiales = "paleturquoise1",
Micrococcales = "turquoise2",
Microtrichales = "turquoise3",
Bacteroidales = "gold",
Cytophagales = "goldenrod2",
Flavobacteriales = "goldenrod3",
Burkholderiales = "mistyrose",
Enterobacterales = "pink",
Pseudomonadales = "palevioletred1",
Rhizobiales = "palevioletred3",
Sphingmonadales = "maroon1",
Rhodobacterales = "violetred4",
Xanthomonadales = "palevioletred4",
Verrucomicrobiota = "black"))
from fantaxtic.
from fantaxtic.
Related Issues (20)
- label_duplicate_taxa does not generate unique labels HOT 2
- 2-level relative abundance bar plot of microbial metagenomics data: help with code HOT 7
- Nested_top_taxa HOT 2
- Bold legend titles fails when changing theme HOT 1
- plot_nested_bar: Specify colors for each bacterial order HOT 2
- Relative abundance with others HOT 1
- nested_top_taxa HOT 6
- How can I group samples by fixed effects on the x axis instead of the model? HOT 3
- a
- How to install fantaxtic package? HOT 1
- Working with a taxonomic subset? HOT 3
- Most abundant genera across a complete phyloseq object HOT 5
- Change legend text size HOT 1
- Sorting stacked barplot based on abundance values HOT 1
- Color palette, rgb, color name etc... or possible insertion from other packages? HOT 9
- Unable to install Fantaxtic HOT 2
- n_taxa = is not working for me HOT 2
- Names must be unique issue HOT 2
- {X} values required in clr.pal, {<X} provided HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fantaxtic.