Coder Social home page Coder Social logo

Comments (2)

XELong avatar XELong commented on July 18, 2024 1

Thanks your very much!

from astrobiomike.github.io.

AstrobioMike avatar AstrobioMike commented on July 18, 2024

Hi there, @XELong :)

If you want to be able to follow the tutorial with your data, including all the things that use the color column (which is most of the plots), then you'd need to have a column called "color" sample_info_tab, and it needs to hold names of colors based on the groups you care about. You can do this outside of R if it's easier, and then just read in the new sample_info.tsv that has the color column. If you look at the tutorial example data, you can see how that column is formatted, e.g., here is peaking at the file at the command-line:

image

So you'd want to add that column, with colors based on what makes sense for your data. For example, in the tutorial it's by what's the "char" column (water = blue; glassy = black; and so on). One place you can see a list of valid R colors and their names is at this page: https://r-graph-gallery.com/42-colors-names.html

If you don't have a "color" column that holds these color names for your data, then you will need to modify the code accordingly in many places. It's not as easy as me saying what to do where, unfortunately, it'd take running through all the exact code with the data files in order to make sure all different places are set accordingly. Sorry i don't have a version without colors

hope that helps

from astrobiomike.github.io.

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.