Comments (7)
Hi, you can use the right
parameter, by default right=TRUE
and the direction is increasing.
If you want decreasing order, use right=FALSE
.
An example can be found in http://ygc.name/2015/04/01/an-example-of-drawing-beast-tree-using-ggtree/.
from ggtree.
Hi Yu,
Thanks for making ggtree! I spent most of the day with it and am very impressed. I was wondering if you could answer two questions for me?
-
Is it possible to reverse the timescale in theme_tree2 so that the oldest ages are at the root and 0 is at the present?
-
is there a way to control the size of the tree relative to the size available for tip names and image annotations? I would like to have control of the x axis of the tree figure so I could shrink it a bit and leave more room to taxon names etc.
Thanks for any help!
Mike
On Oct 19, 2015, at 8:28 AM, Guangchuang Yu [email protected] wrote:
Hi, you can use the right parameter, by default right=TRUE and the direction is increasing.
If you want decreasing order, use right=FALSE.An example can be found in http://ygc.name/2015/04/01/an-example-of-drawing-beast-tree-using-ggtree/ http://ygc.name/2015/04/01/an-example-of-drawing-beast-tree-using-ggtree/.
—
Reply to this email directly or view it on GitHub #18 (comment).
from ggtree.
Q1
p <- ggtree(rtree(30))
p$data$x <- p$data$x - max(p$data$x)
p
Q2
annotating with image is always relative to the drawing canvas, so the answer is yes.
But for tip names, we can't control their size relative to the tree or vice verse, see my answer to the question.
If you just want to allocate more space for tip names, just use xlim
to get more space.
from ggtree.
thanks very much!!!
On Oct 21, 2015, at 7:41 PM, Guangchuang Yu [email protected] wrote:
Q1
p <- ggtree(rtree(30))
p$data$x <- p$data$x - max(p$data$x)
p
Q2annotating with image http://ygc.name/2015/08/01/ggtree-annotate-phylogenetic-tree-with-local-images/ is always relative to the drawing canvas, so the answer is yes.
But for tip names, we can't control their size relative to the tree or vice verse, see my answer to the question https://support.bioconductor.org/p/72398/.
If you just want to allocate more space for tip names, just use xlim to get more space.
—
Reply to this email directly or view it on GitHub #18 (comment).
from ggtree.
Hi Guanchuang,
Is there a way to adjust the position of geom_nodepoints? I tried something like this but I don’t think the points are moving….
ggtree(beast) + geom_nodepoint(aes(label = bootstrap), vjust=.1, hjust=-10, size = 2)
thanks very much!
On Oct 21, 2015, at 7:41 PM, Guangchuang Yu [email protected] wrote:
Q1
p <- ggtree(rtree(30))
p$data$x <- p$data$x - max(p$data$x)
p
Q2annotating with image http://ygc.name/2015/08/01/ggtree-annotate-phylogenetic-tree-with-local-images/ is always relative to the drawing canvas, so the answer is yes.
But for tip names, we can't control their size relative to the tree or vice verse, see my answer to the question https://support.bioconductor.org/p/72398/.
If you just want to allocate more space for tip names, just use xlim to get more space.
—
Reply to this email directly or view it on GitHub #18 (comment).
from ggtree.
you can't move the point
.
It seems you want to label bootstrap
value, try using geom_text
.
from ggtree.
ok thanks. I wanted to use a symbol for the bootstrap values and another symbol for the posteriors….
On Nov 3, 2015, at 6:14 PM, Guangchuang Yu [email protected] wrote:
you can't move the point.
It seems you want to label bootstrap value, try using geom_text.
—
Reply to this email directly or view it on GitHub #18 (comment).
from ggtree.
Related Issues (20)
- Issue with linear tree with only one parent and one
- layout_dendrogram and theme_tree2 are incompatiable HOT 1
- Error with geom_inset of nodepies onto circular/radial/fan trees
- Unwanted white lines between tiles in gheatmap layout circular/fan
- rect_to_poly issue HOT 9
- Tree tips not colored according to specified colors HOT 2
- geom_cladelab doesn't facet
- facet_plot will not plot correctly align to branch in ggtree
- geom_hilight rectangle unreasonably long
- geom_highlight compresses the tree slightly
- Basic functionality missing from ggtree
- Problems with Collapse function
- Same name on one tree (2 copies), add links to another tree problem
- 无法正常绘制layout = "equal-angle"的tree
- theme_tree2 scale bar width
- chunky resolution of circular tree segments
- geom_taxalink error "as_string() Can't convert `NULL` to a string." HOT 2
- Sorting Problem of Evolutionary Leaf Node Labels//咨询进化树叶节点的排序问题 HOT 3
- ggtree adds unexpected branch/node HOT 1
- No "read.r8s" HOT 2
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 ggtree.