Hello again,
Recently I found that "radial" option throws an error. Here is an example using the script from
the Reproducible example -
library(TDbook)
library(tibble)
library(tidyr)
library(Biostrings)
library(treeio)
library(ggplot2)
library(ggtree)
# loaded from TDbook package
tree <- tree_HPV58
ggtree(tree, layout = "radial")
This returns an error:
Error in `stat_tree()`:
! Problem while converting geom to grob.
i Error occurred in the 1st layer.
Caused by error in `check.length()`:
! 'gpar' element 'lwd' must not be length 0
But ggtree(tree, layout = "circular") works fine. How come...? Is there a way to get around it? I would like to use the slanted layout. Thanks,
Rie