ggreverse
ggreverse copied to clipboard
compatibility with default theme
see the source code below:
require(ggtree)
x = rtree(30)
p = ggplot(x) + geom_tree()
code = ggreverse::convert_to_code(p)
# Error in reverse_theme(p$theme) : inherits(theme, "theme") is not TRUE