Open bschilder opened 1 year ago
Note, converting the input data to a data.frame
with row names as the species seems to help slightly for the SVG example (though image filling and distortion still occurs):
d <- as.data.frame(d) |> `rownames<-`(d$species)
ggtree(tr, layout = "circular",
ggplot2::aes(color=one2one_orthologs),
continuous = 'colour')%<+% d +
geom_tiplab2(geom="image",
ggplot2::aes(image=svg))
But the same error still persists for PNGs:
## Error
ggtree(tr, layout = "circular",
ggplot2::aes(color=one2one_orthologs))%<+% d +
geom_tiplab2(geom="image",
ggplot2::aes(image=png))
Error in `label_geom()`:
! Problem while converting geom to grob.
ℹ Error occurred in the 3rd layer.
Caused by error in `[<-`:
! subscript out of bounds
Run `rlang::last_trace()` to see where the error occurred.
@GuangchuangYu what is the status of this?
Prerequisites
Describe you issue
geom_tiplab2
seems to work fine until I introduce some coloring parameters.phylo_data.csv
Not sure why this is happening.
Rerunning with
rlang::last_trace()
Dropping the tree tips not present in the data beforehand doesn't make a difference:
Ask in right place
Session info