Needs beta testers!
Package containing wrapper functions around OUwie to streamline analyses and export results in a neat tibble.
This package is not on CRAN. To install, run the following line of code:
devtools::install_github("stfriedman/tidyouwie")
# simulating data for example
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 to run
models <- c("BM1", "BMS", "OUM")
#one line of code to run everything together
results <- ouwie_tidy(phy, disc_trait, cont_traits, models, nsim = 2)
results$tidy_output
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.