skyline_smooth: skyline_smooth

Description Usage Arguments Value Author(s) Examples

View source: R/SkylineDatedTips_extension.R

Description

Draws a generalized skyline onto a plot

Usage

1
2
skyline_smooth(end_times, pop_size, epsilon = 0, plot_type = c("step"),
  col = 4)

Arguments

epsilon:

a smoothing parameter. Any time intervals smaller than this value will be joined with adjacent bins until all are wider than this.

draw:

logical specifying if the skyline should be drawn (TRUE) or simply the points on the graph returned (FALSE)

Value

Draws the lines of a skyline, but with a minimum time interval specified by epsilon

If draw=F, it returns a list with the end times of the intervals and the population sizes, smoothed as per the value of epsilon.

Author(s)

George Shirreff <georgeshirreff@gmail.com>

Examples

1
library(ape)

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