inst/doc/scrm-TreesForApe.R

## ----echo=FALSE---------------------------------------------------------------
set.seed(40)

## -----------------------------------------------------------------------------
library(scrm)
sum_stats <- scrm('5 1 -r 1.5 100 -T')
sum_stats$trees[[1]]

## -----------------------------------------------------------------------------
library(ape)
trees <- read.tree(text = paste0(sum_stats$trees[[1]]))
trees

## ---- fig.align='center'------------------------------------------------------
plot(trees, no.margin = TRUE)

Try the scrm package in your browser

Any scripts or data that you put into this service are public.

scrm documentation built on March 18, 2022, 7:12 p.m.