Coder Social home page Coder Social logo

Comments (7)

GuangchuangYu avatar GuangchuangYu commented on May 29, 2024

same issue as in issue 3, gridExtra can not arrange them properly. This is the reason why I need to develop gheatmap function.

from ggtree.

stiatragul avatar stiatragul commented on May 29, 2024

The gheatmap function is great for aligning a 'data' with the tree. However, my graph is a ggplot so the gheatmap function does not recognize it. In issue 3, the problem seemed to be aligning a "heatmap."

I hope this helps and that this is not just me being incapable of writing the code correctly. I looked at the vignette many times but could not figure it out. Please advise how I could use the gheatmap function to align my ggplot with my tree.

Thank you for your patience! I appreciate your time in helping me out!

from ggtree.

GuangchuangYu avatar GuangchuangYu commented on May 29, 2024

In issue 3, the issue is using grid.arrange can't align a ggplot object (heatmap) with a tree.

AND gheatmap is designed to align heatmap with a tree. It can't work with a ggplot object.

from ggtree.

stiatragul avatar stiatragul commented on May 29, 2024

I see, thank you very much again for your response. I saw a request for ggplot2 two to develop a function that will do just that. I hope this development will happen in the near future.

from ggtree.

GuangchuangYu avatar GuangchuangYu commented on May 29, 2024

I think gtable can help. I will look into it when I have some free time.

It would be great if we can work out a way more general than gheatmap.

from ggtree.

stiatragul avatar stiatragul commented on May 29, 2024

Thanks so much, I will look into using gtable but a lot of learning has to take place on my part first. I agree, it would be great to get a more general function because these sort of figure are helpful!

from ggtree.

GuangchuangYu avatar GuangchuangYu commented on May 29, 2024

one possible solution: http://guangchuangyu.github.io/ggtree/advanceTreeAnnotation.html#align-tree-with-other-plots-on-a-page

from ggtree.

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.