GithubHelp home page GithubHelp logo

santiagosnchez / rbt Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 11.87 MB

Handy functions for dealing with BEAST trees in R

License: GNU General Public License v3.0

R 90.73% Perl 9.27%
beast phylogenetics r

rbt's Introduction

rBt

Description

rBt includes several functions to handle phylogenetic data. Specifically, it includes a function read.annot.beast that can read meta-data from BEAST1 or BEAST2 tree files, such as maximum clade credibility (MCC) trees and full posterior trees. This package is being developed with different angles in mind, but it can be used for things like plotting time-trees, and extracting and visualizing phylogenetic data.

Installation

Open up an R console:

install.packages("devtools")
library(devtools)
install_github("santiagosnchez/rBt")

Some functions

Examples

Run the function with ? in front (e.g. ?mcc2) to access the help files, which have examples and more information.

Citation

Sánchez-Ramírez, S. (2018) rBt: Handy functions for dealing with BEAST trees in R, GitHub repository: https://github.com/santiagosnchez/rBt

rbt's People

Contributors

santiagosnchez avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

rbt's Issues

plot.phylo.HPD xlim

Hi,

I noticed that plot.phylo.HPD() plots off of the left margin, even on the example tree. I think this is because the xvalues in the tree are positive while the lower xlim values should be negative if the lowest bar extends beyond the tree, but I could be understanding it wrong. In any case, I prevented the margin issue by adding a negative before the min(xxl) in

plot(x, x.lim = c(-min(xxl, na.rm = TRUE), maxxlim), ...)

in line 68 of the script.

Thanks for a very useful package!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.