Code Monkey home page Code Monkey logo

Comments (3)

gmteunisse avatar gmteunisse commented on June 27, 2024

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.

pauGuas avatar pauGuas commented on June 27, 2024

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.

gmteunisse avatar gmteunisse commented on June 27, 2024

from fantaxtic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.