-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geoms with their own data don't work with ggtree #4
Comments
Hmm...when I run your code line for line, I get > tree<-pbtree(n=16,tip.label=LETTERS[1:16],scale=20)
> p <- ggtree(tree, size = 0.3) +
coord_cartesian(xlim = c(15,-30), ylim = c(-40,Ntip(tree)), expand = FALSE) +
scale_x_continuous(breaks=seq(-30,0,10), labels=abs(seq(-30,0,10))) +
geom_tiplab(cex = 0.7) +
theme_tree2()
> p <- revts(p)
> p + geom_rect(data = periods, aes(xmin = min_age, xmax = max_age), ymin = 0, ymax = 5, show.legend = FALSE)
Error in FUN(X[[i]], ...) : object 'x' not found I'm gonna loop @GuangchuangYu in here, since this only appears to be a problem when adding the scale to ggtree objects. > p + geom_rect(xmin = -5, xmax = 0, ymin = -5, ymax = 0, show.legend = FALSE) |
That sounds possible. ggtree was having some really bad problems interacting with phytools over the last few days as well. I have repeatedly had to clear my environment and clean-sheet to get my other scripts working. |
@markscherz, until this is resolved you should be able to use the old version of deeptime (before the most recent changes) using the following: |
@willgearty excellent, thanks! |
Had everything working beautifully a few days ago, now I go to try to run the script and something is not working.
Traceback yields
So my guess is that it is failing because it is not able to find fill_geo_scale.
Curiously, in a second script, the error is "object 'x' not found", but I presume it is caused by the same problem.
The text was updated successfully, but these errors were encountered: