Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zachcp/phylocanvas
htmlwidgets for phylocanvas
https://github.com/zachcp/phylocanvas
htmlwidgets phylogeny r
Last synced: 3 months ago
JSON representation
htmlwidgets for phylocanvas
- Host: GitHub
- URL: https://github.com/zachcp/phylocanvas
- Owner: zachcp
- License: other
- Created: 2016-11-07T22:22:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T04:03:57.000Z (almost 5 years ago)
- Last Synced: 2024-05-14T12:34:38.195Z (6 months ago)
- Topics: htmlwidgets, phylogeny, r
- Language: R
- Homepage: http://zachcp.github.io/phylocanvas/
- Size: 518 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shiny-extensions - phylocanvas - Interactive phylogenetic trees using the Phylocanvas JavaScript library. (Visualization / Biological Data)
README
phylocanvas
===========[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/phylocanvas)](https://cran.r-project.org/package=phylocanvas)
Use phylocanvas to draw phylogenetic trees in the browser. Basic options to control the tree are availalbe in this top level function. The tree shape in controlled by the `treetype` option. Try 'radial' and 'heirarchical' as well.
Installation
------------You can install phylocanvas from github with:
``` r
install.packages("phylocanvas")
```Example
-------This is a basic example which shows you how to solve a common problem:
``` r
install.packages("phylocanvas")
tree <- ape::read.tree("(A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5)F;")
phycanv <- phylocanvas(tree,treetype = "rectangular", alignlabels = T)
# stylize nodes
phycanv %>%
style_node("A", nodesizeratio = 4, fillcolor="rgb(0, 255, 0)") %>%
style_node("B", fillcolor = "blue") %>%
style_node("C", labeltextsize = 10, shape="triangle") %>%
style_node("D", fillcolor="#ffa500", highlighted=TRUE)
```Latest Information
------------------See the [documentation webpage](https://zachcp.github.io/phylocanvas/) fot the latest information.
Roadmap
-------Not expecting 1:1 parity with the pure JS version. The goal is to expose the basic styling and sizing to allow easy tree drawing within R. Possibly, to use the metadata plugin for heatmap displays and ideally (don't know how hard this will be) allow drag and drop selection for returnign sequence names into shiny.
Reference
---------The sourcecode for the phylocanvas htmltools package can be found at the [github repo](https://github.com/zachcp/phylocanvas). For more information about the phylocanvas JavaScript library, check out the [phylocanvas website](http://phylocanvas.org).