Open tiagonardi opened 2 years ago
The default image size is 0.05. I think this is about the Tip label truncated issue. You can also read the manual of geom_tiplab
via ?geom_tiplab
for more detail about this geom
.
@xiangpin the issue is located in https://github.com/GuangchuangYu/ggimage/blob/master/R/geom_phylopic.R#L39-L41, that we are not able to determine which size is available in phylopic in current implementation.
Hello,
The automatic download from Phylopic is very convenient but I found a small problem: ggtree (version 3.2.1) tries to download an image with a size of 256x172, even when an image of this size is not present. For examples:
I get the error "failed to download http://phylopic.org/assets/images/submissions/6e47a104-e62a-4901-81f7-fca2ecacdb0e.256.png (HTTP 404)" as the image doesn't exist (http://phylopic.org/image/6e47a104-e62a-4901-81f7-fca2ecacdb0e/ has other sizes). As a workaround I changed the value to download another image (http://phylopic.org/image/7c9ab182-175d-4f02-96d0-09c1e5212bff/) for the same taxon with the correct size:
It's not a big deal, but maybe can be helpful to have an indication about the image size requirement in the treedata book.