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: combining "treeonly" with taxonomy table or instead have only one geom_point per leaf? #1042

Open
RJ333 opened this issue Nov 29, 2018 · 1 comment
Assignees
Labels

Comments

@RJ333
Copy link

RJ333 commented Nov 29, 2018

Hello everyone,

I'm trying really hard to generate a tree which does not display the geom_points per sample (I have about 300 samples) but displays the taxonomic name + OTU id. I thought this would be the same question (#617) but on the suggested page there was no tree similar to what I'm looking for.

So I tried to use "treeonly" to get rid of the geom_points, but (if I haven't done anything wrong) this also removes the possibility to display anything else apart from the Otu names (or ASV or how you want to call them, the link between the different phyloseq-slots)).

# fine, but gives me a lot of sample points which I don't need
plot_tree(ps, label.tips = "Genus")
# this works also fine, but the sequence header alone does not help me
plot_tree(ps, "treeonly", label.tips = "taxa_names")
# this would be what I want:
plot_tree(ps, "treeonly", label.tips = "Genus")
# but gives
Don't know how to automatically pick scale for object of type taxonomyTable. Defaulting to continuous.
Error in as(x, "matrix")[i, j, drop = FALSE] :
  incorrect number of dimensions

Do you say a way to get there? And if not, e.g. if the geom_points are required to map the taxonomic data, could they be reduced to a single geom_point per leaf?

Thank you very much!

René

BTW: this (#1039) is a related issue, but not the same!

@nachishankar
Copy link

Hi,
I'm having exactly the same issue with my tree - but neither of these posts have got any solution to the problem. Could someone please let me know if you did find a way to get tree tip labels something other than the OUT001, 0002 etc.. to actual genus/family etc names?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants