processMaps: Process phytools simmaps

View source: R/processMaps.R

processMapsR Documentation

Process phytools simmaps

Description

Convert a list of phytools simmaps to a states.df

Usage

processMaps(simmaps, translation.table)

Arguments

simmaps

A list of simmaps; the result of a call to phytools::make.simmap where nsim > 1.

translation.table

A data frame with the following two columns: "state" and "color", the name of the color to use in the plot to indicate that that trait state. Color can be specified in a variety of ways–word, hexadecimal, probably rgb but untested.

Details

Take a list of simmaps, summarize them, and converts the results into a states.df suitable for downstream use in shiftPlot.

Value

A new states.df.

Author(s)

Eliot Miller


eliotmiller/shiftPlot documentation built on March 30, 2023, 4:26 a.m.