multi.BSP: Generate multiple Bayesian skyline plots within one figure

View source: R/BSP.R

multi.BSPR Documentation

Generate multiple Bayesian skyline plots within one figure

Description

multi.BSP takes as 2 separate input data equal to the first element of the output from BSP reduced to a unique parameter and a unique locus and generates a figure where two BSP are concurrently plotted.

Usage

multi.BSP(
  data1 = NULL,
  data2 = NULL,
  col1 = "black",
  col2 = "red",
  y.title = "",
  dir.out = NULL,
  save2disk = TRUE
)

Arguments

data1, data2

The data generated by BSP to be used for the BSPs

col1, col2

The colour to be used for the BSPs

y.title

The title for the y-axis (default="")

dir.out

The local path to store the results. If NULL (default) then dir.out=getwd()

save2disk

Whether to save results to disk (default: TRUE)

Value

A list with the combined data (as data.table) and a BSP.


carlopacioni/mtraceR documentation built on Nov. 3, 2023, 4:30 a.m.