+ Reply to Thread
Results 1 to 5 of 5

Thread: Ploting continuous caracter on a phylogenetic tree

  1. #1
    Points: 29, Level: 1
    Level completed: 58%, Points required for next Level: 21

    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Ploting continuous caracter on a phylogenetic tree




    Hi,

    I study comparative biology and have been trying to estimate ancestral character states for continuous characters using the package phytools.

    The optimization of the characters is perfect but I have problems editing the outcome image. My main goal is that all the branches have the same length, right now I am getting random lengths as in the attached image.

    Here's the code I'm using:

    obj<-contMap(tree, cont.charac, plot=FALSE)
    plot(obj,legend=0.7*max(nodeHeights(tree)))

    I have tried using the argument "use.edge.length = FALSE" with no success. And have also tried other commands as "plot.phylo" and "plotTree", for which I got the error message: found less than 2 tips in the tree.

    Thanks a lot for your consideration.
    Best regards,
    jessica
    Attached Images  

  2. #2
    Omega Contributor
    Points: 38,396, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    7,001
    Thanks
    398
    Thanked 1,186 Times in 1,147 Posts

    Re: Ploting continuous caracter on a phylogenetic tree

    Sorry, I am not familiar with the program.


    Well they seem to have a standardized length. Why do you want the branches to have the same overall length, aesthetics?


    Some regression tree programs make lengths representative of some value characteristic of the splits contributions. So I can see the benefit of having standardized or lengths based on a formula - but just for cosmetic reasons seems troublesome for interpretation without justification in the Figure Legend.
    Stop cowardice, ban guns!

  3. The Following User Says Thank You to hlsmith For This Useful Post:

    jessicafratani (02-10-2016)

  4. #3
    Points: 29, Level: 1
    Level completed: 58%, Points required for next Level: 21

    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Ploting continuous caracter on a phylogenetic tree

    Thanks, I did'n think of this possibility!

    I don't think it is the case though, because I have 14 of these optimizations (of different characters) and the tree shows the same structure. I think that it is rather a fixed topology in which the species sort of 'fall behind' as they diverge.

    As the default topology seems to be an aesthetic option, I would prefer the branches to be symetric (mainly because I need to fit all the reconstructions into one page).

  5. #4
    Omega Contributor
    Points: 38,396, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    7,001
    Thanks
    398
    Thanked 1,186 Times in 1,147 Posts

    Re: Ploting continuous caracter on a phylogenetic tree

    Is this paper for a journal? If so, I would look at prior comparable published images and see if you really need to modify your figure. I think it looks fine and forcing it to end at the same place could mislead a reader to assume each terminal node has the same number of ancestors. I can't make out the content, so I am at a lose when knowing if certain things transpired at the same time or if certain thing require greater weight.


    Big picture, I don't see an issue here and even if I did - I don't know the program. Good luck and perhaps others may chime in!
    Stop cowardice, ban guns!

  6. The Following User Says Thank You to hlsmith For This Useful Post:

    jessicafratani (02-11-2016)

  7. #5
    Super Moderator
    Points: 31,766, Level: 100
    Level completed: 0%, Points required for next Level: 0
    bugman's Avatar
    Posts
    2,255
    Thanks
    290
    Thanked 324 Times in 265 Posts

    Re: Ploting continuous caracter on a phylogenetic tree


    Try the package "picante" and the functions:

    branch.lengths and

    equal.splits

    These might be what you are looking for.
    The earth is round: P<0.05

  8. The Following User Says Thank You to bugman For This Useful Post:

    jessicafratani (02-11-2016)

+ Reply to Thread

           




Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats