View source: R/expand_params.R
expand_params | R Documentation |
This function expands the output from ouwie_tidy so that parameter values for all regimes are visible.
expand_params(results)
results |
output from the ouwie_tidy function |
Function returns the results tibble with parameter values for each regime in a column
Beaulieu, J. M., & O’Meara, B. 2014. OUwie: analysis of evolutionary rates in an OU framework.
#simulating dummy data to run through OUwie phy <- pbtree(n = 20, nsim = 2) disc_trait <- setNames(sample(letters[1:2], 20, replace = TRUE), phy[[1]]$tip.label) cont_traits <- as_tibble(iris[1:20, 1:2]) %>% mutate(species = phy[[1]]$tip.label) models <- c("BM1", "OUM") #set of models to run on each simmap results <- ouwie_tidy(phy, disc_trait, cont_traits, models, nsim = 2) expand_params(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.