phsc.plot.windowsummaries.for.pairs: Plot window summaries for pairs of individuals

View source: R/phyloscan.fun.private.R

phsc.plot.windowsummaries.for.pairsR Documentation

Plot window summaries for pairs of individuals

Description

This function plots the window summaries for each pair of individuals.

Usage

phsc.plot.windowsummaries.for.pairs(
  plot.select,
  rpw2,
  rplkl2,
  plot.file,
  cols = NULL,
  group = NA,
  widths = unit(c(4, 6), "null"),
  heights = unit(c(2, 3.5, 4, 5), "null"),
  height = 9
)

Arguments

plot.select

Select pairs for plotting. This is specified as a data.table with columns PTY_RUN, MALE_SANGER_ID, FEMALE_SANGER_ID, LABEL. Each pair has assigned a label that is used as title.

rpw2

Window assignments for pairs of individuals. This is specified as a data.table with columns PTY_RUN, MALE_SANGER_ID, FEMALE_SANGER_ID, W_FROM, ID_R_MAX, ID_R_MIN, TYPE.

rplkl2

Posterior probability assignments for pairs of individuals. This is specified as a data.table with columns PTY_RUN, MALE_SANGER_ID, FEMALE_SANGER_ID, TYPE, KEFF, POSTERIOR_ALPHA, POSTERIOR_BETA

plot.file

Name of output file

cols

Colours for relationship types. This is specified as a named vector, which can be null.

group

Relationship group name. This is used to define default colours if cols==NULL.

heights

Heights of subfigures in grid.layout. This is overwritten if group is specified.

height

Total height of pdf in inches. This is overwritten if group is specified.

widhts

Widths of subfigures in grid.layout. This is overwritten if group is specified.

Value

Plots to file.


olli0601/Phyloscanner.R.utilities documentation built on April 26, 2024, 11:29 a.m.