{"id":19644877,"url":"https://github.com/uscbiostats/jsphylosvg","last_synced_at":"2025-08-19T01:07:26.786Z","repository":{"id":93430226,"uuid":"113516546","full_name":"USCbiostats/jsPhyloSVG","owner":"USCbiostats","description":"htmlwidgets for the jsPhyloSVG javascript library","archived":false,"fork":false,"pushed_at":"2017-12-15T00:58:15.000Z","size":509,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-28T14:45:24.591Z","etag":null,"topics":["htmlwidgets","phylogenetic-trees","phylogenetics","r","rpackage","rstats"],"latest_commit_sha":null,"homepage":"https://uscbiostats.github.io/jsPhyloSVG/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/USCbiostats.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-08T01:26:55.000Z","updated_at":"2021-11-28T12:26:18.000Z","dependencies_parsed_at":"2023-03-29T04:47:59.484Z","dependency_job_id":null,"html_url":"https://github.com/USCbiostats/jsPhyloSVG","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/USCbiostats/jsPhyloSVG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2FjsPhyloSVG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2FjsPhyloSVG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2FjsPhyloSVG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2FjsPhyloSVG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/USCbiostats","download_url":"https://codeload.github.com/USCbiostats/jsPhyloSVG/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/USCbiostats%2FjsPhyloSVG/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271083572,"owners_count":24696322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["htmlwidgets","phylogenetic-trees","phylogenetics","r","rpackage","rstats"],"created_at":"2024-11-11T14:30:34.604Z","updated_at":"2025-08-19T01:07:26.759Z","avatar_url":"https://github.com/USCbiostats.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput:\n  - github_document\n  - html_document\nalways_allow_html: yes\ntheme: journal\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"70%\"\n)\n```\n# jsPhyloSVG htmlwidget\n\nThe [jsPhyloSVG](http://jsphylosvg.com) javascript library provides a neat visualization tool for phylogenetic trees. This R package, which has the same name, is a wrapper that builds an [htmlwidget](http://www.htmlwidgets.org/) that allows its use in R, including RMarkdown and Shiny. This is still work in progress.\n\n## Installation\n\nYou can install jsPhyloSVG from github with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"USCBiostats/jsPhyloSVG\")\n```\n\n## Example\n\nIn the following, we present an example of usage of the widget. First, using the [ape](https://cran.r-project.org/package=ape) package, we create a random phylogenetic tree.\n\n```{r loading-packages}\nlibrary(ape)\nlibrary(jsPhyloSVG)\n```\n\n```{r random-tree}\nx \u003c- rtree(10)\n```\n\nUsing the `plot.ape` method, we can get a nice tree drawn with ape:\n\n```{r ape-plot}\nplot(x)\n```\n\nUsing the `jsPhyloSVG` function, we can visualize the same tree but using the Javascript library of the same name, [jsPhyloSVG](http://jsphylosvg.com):\n\n\n```{r}\njsPhyloSVG(write.tree(x), width = 500)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuscbiostats%2Fjsphylosvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuscbiostats%2Fjsphylosvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuscbiostats%2Fjsphylosvg/lists"}