Closed AgustinPardo closed 3 years ago
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
Hi, were you able to figure out the issue?
No, I could not solve it!
Hi @AgustinPardo Thank you so much for your sample script above. I am very new in R and I am going to plot similar to you. I have a phylogenetic tree of about 300 bacterial genomes and I have the CSV lat and long like this: lat long Bacterial 1 -53.75945233 89.82698 Bacterial 2 -53.75945233 89.82698 Bacterial 3 -53.75945233 89.82698 Bacterial 4 -5.28332361 -160.89541 Bacterial 5 -5.28332361 -160.89541 Bacterial 6 -5.28332361 -160.89541 Bacterial 1-3 from province A (country) and bacterial 4-6 from province B. However, I don't understand various line of your script of how gps be generated and how color be added to get the beautiful plot above. for example: latitudes_id=gps[,1:2] What are latitudes_id and input gps look like? Could I see the example of your gps_data.dat in csv? Or could you please explain your scrip a bit more? It may help me a lot to follow your script. I was woundering if you could you suggest me how to generate my input gps data above to get the beautiful plot like you. Really appreciate for any help.
I send to you the input files (attached as "data.zip"), so you can explore them!
Unfortunately, this isn't a feature yet in phylo.to.map
. One option is to use get("last_plot.phylo", envir = .PlotPhyloEnv)
(which does work with phylo.to.map
) to get the coordinates of the plotted tree, and then just overplot if with the colors that you want to show. This requires some advanced R scripting, though, unfortunately.
Hello, I am running this code:
To get this figure:
Do you how I could also add color to the branches by the color of the arrow? That is the closest branch colored by the color of the arrow!
Regards