Allow to visualise data on the NCBI phylogenetic tree as presented in Lifemap < https://lifemap.cnrs.fr/>. It takes as input a dataframe with at least a "taxid" column containing NCBI format TaxIds and allows to draw multiple layers with different visualisation tools.

An R package to visualise data on a Lifemap base (https://lifemap.cnrs.fr/)
To install the development version of LifemapR from GitHub :
remotes::install_github("damiendevienne/LifemapR")
Once installed, load the package with :
require("LifemapR")
Here is a brief introduction on how to use LifemapR.
build_Lifemap function transform your already existing data into a format usable by LifemapR functionsdata(eukaryotes_1000)
# Construction of a LifemapR usable dataframe
LM_obj <- LifemapR::build_Lifemap(eukaryotes_1000)
After the build_Lifemap function the result is a LifemapR format containing a dataframe :
full_df <- LM_obj$df
LifemapR functions.
Note that with the LifemapR functions, a shiny application will be launched# Initialise a visualisation for LM_obj
lifemap(LM_obj) +
# adding a subtree with colored branches
LifemapR::lm_branches(var_col = "Protein", FUN = mean, col = "PiYG")+
# adding a set of points
LifemapR::lm_markers(radius = "GC.", var_fillColor = "Genes", FUN = mean)
To do list :
[ ] New protocole to fetch data with improved databases (parquet format)
[ ] Improve create_matrix() to use less CPU (merge before joining all lists)
[ ] Improve make_newick() to make it recursive
[ ] Improve the shiny application version
[x] Redo pass_info function to only infer unknown values and only from the value of direct ancestors
[x] Implement popups and labels for markers
[ ] Implement popups and labels for polylines
[x] Black background on leaflet
[x] Repair the size legend
[x] Option to thicker the line depending on a variable
[x] Improve create_matrix function to pass check
Go to the package's folder
require(devtools)
devtools::load_all()
then you can simply use the package's functions