Comments (4)
Hmm...when I run your code line for line, I get Error in FUN(X[[i]], ...) : object 'x' not found
, as you do for your other script.
I've tried the code without the new "fill_geo_scale", and I'm still getting the same error:
> 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.
Before the most recent update, the rectangles and labels were added as annotations, but now they are added as geoms, so that is the only change that could have caused the new issue. My best guess is that there's a conflict between the data used by ggtree and the data supplied by my package? Especially since the following works:
> p + geom_rect(xmin = -5, xmax = 0, ymin = -5, ymax = 0, show.legend = FALSE)
from deeptime.
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.
from deeptime.
@markscherz, until this is resolved you should be able to use the old version of deeptime (before the most recent changes) using the following:
install_github("willgearty/deeptime", ref = "37a00cd")
(I just checked and this works for your example)
from deeptime.
@willgearty excellent, thanks!
from deeptime.
Related Issues (20)
- Issues with next version of ggplot2 HOT 4
- Remove remaining uses of getFromNamespace() HOT 3
- Use coord_geo with a graph used coord_flip HOT 5
- `pos` order is inconsistent for different sides HOT 1
- coord_geo_polar labels HOT 1
- ggsave bug HOT 3
- facet strips with GTS colors HOT 7
- r/theta theme elements coming in ggplot 3.5.0 HOT 2
- Support for geological fill patterns HOT 8
- Custom geological timescale axis guide HOT 1
- Facet like coord_trans_xy
- facet_nested with geological time scale coloring
- Switch coord_geo_polar to use coord_radial
- ggplot2 3.5.0 broke axis lines in coord_trans_xy() HOT 4
- coord_trans_flip is missing axis lines in ggplot 3.5.0 for certain transformations HOT 1
- Release deeptime 1.1.0
- coord_geo_polar() and coord_geo_radial() don't properly account for expansion along r axis
- Release deeptime 1.1.1
- Release deeptime 1.2.0
- Label abbreviations based on only plotted intervals
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deeptime.