-
Notifications
You must be signed in to change notification settings - Fork 56
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Error when plotting phylo.to.map #6
Comments
This might be as simple as resizing the plotting device or the text of the plot labels, as I know there can be issues when the tree & labels don't fit in the plotting device as intended.
|
I am getting the same error message. The 'direct' shape works but with phylogram the plot is only partially drawn and no connecting lines are drawn. I tried, rerooting, removing branch lengths and shortening the labels to single letters. Did you work out a general solution to this problem?
|
I get this same error when plotting a cophylo plot. The same code works for some trees, however others give this error when I attempt to plot them. EDIT: This happens when I have a cophylo plot with duplicate taxa in one of the trees (the tip labels are modified from strain_locus to strain once loaded with ape, so there are identical tip labels). When I drop the duplicates the plot is correct. I guess I could make the labels unique and manually create the association matrix to include both. |
My suspicion is this has to do with supplying the assoc matrix as a data frame, or, in the case of phylo.to.map, the geographic coordinates in a data frame instead of a matrix. Could this be the case? |
It is in my case. Had a look at the code: So, yep, passing a data.frame not a matrix. Thanks. |
Hi Liam Error in coords[cw$tip.label, 2:1] : subscript out of bounds |
Hi Liam, I'm getting this error every time I want to plot my tree on a map:
Note: I load my coordinate file as read.csv; both the number of rows in the coordinate file and the number of terminals in the tree are the same Thanks! |
I was getting this error too How to solve it - convert your dataframe/csv into a matrix |
When plotting phylo to map, I get the following error:
'direct' method works fine.
Some graphics are output, but the tree looks like it needs rotating 180 (see attached).
Happy to send the input files if necessary via email.
Jon
The text was updated successfully, but these errors were encountered: