Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_tree() queries #1637

Open
marwa38 opened this issue Nov 15, 2022 · 3 comments
Open

plot_tree() queries #1637

marwa38 opened this issue Nov 15, 2022 · 3 comments

Comments

@marwa38
Copy link

marwa38 commented Nov 15, 2022

Hi guys
Thank you so much for plot_tree() it is making things easier.
Could you please help me with my queries;
1- According to the info you provided about the function that the points represented, how many times was observed. as in the excerpt:

method
(Optional). Character string. Default "sampledodge". The name of the annotation method to use. This will be expanded in future versions. Currently only "sampledodge" and "treeonly" are supported. The "sampledodge" option results in points drawn next to leaves if individuals from that taxa were observed, and a separate point is drawn for each sample.

Does this mean the number of families and beyond or the number of phyla or taxa only (count abundances or relative abundances)?
image
2- how to avoid the overlap? I tried different spacing, but it didn't work. base.spacing = 0.01 and base.spacing = 0.03, also changed the ggsave options: ggsave("trees/ps.prev.tree_phylum.tiff", height = 7, width = 15, scale = 1.2)
3- can't I add a ruler of the length as the above figure
image
4- the abundances are the abundances of phyla asvs?
image

5- the branch length doesn't represent the higher abundance?

Thank you
M

@marwa38
Copy link
Author

marwa38 commented Jan 18, 2023

any advice or comments please @joey711

@joey711
Copy link
Owner

joey711 commented Jan 18, 2023

You might find ggtree package more useful for customization. If you search around, you should find some examples of phyloseq + ggtree. Basically, handing off data from phyloseq object to ggtree.
Hope that helps!

@marwa38 marwa38 closed this as completed Feb 12, 2023
@marwa38
Copy link
Author

marwa38 commented Feb 12, 2023

Thanks @joey711
should the tree be binary for visualisation in plot_tree()?
I tried ggtree beforehand but I found it much easier to use plot_tree(). I will use ape package to draw a scale bar on the tree.
Please comment on my queries, thanks for your inputs.

@marwa38 marwa38 reopened this Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants