draw_skyline: draw_skyline

Description Usage Arguments Value Author(s) Examples

View source: R/SkylineDatedTips_extension.R

Description

Draws a classic skyline onto a plot

Usage

1
draw_skyline(end_times, pop_size, plot_type = c("linear", "step"), col = 1)

Arguments

end_times:

the times at the end of every interval in the skyline.

pop_size:

the effective population size at that time point.

plot_type:

choose between "step", where adjacent points on the skyline are joined by a vertical and a horizontal line, and "linear", where adjacent points on the skyline are joined by a single sloping straight line.

Value

Draws the lines of a skyline (step) or INLA (piece-wise linear)

Author(s)

George Shirreff <georgeshirreff@gmail.com>

Examples

1
library(ape)

georgeshirreff/multiNe documentation built on May 17, 2019, 1:15 a.m.