Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

showInTriangle

Add points to the IBD triangle


Description

Utility function for plotting points in the IBD triangle.

Usage

showInTriangle(k0, k2 = NULL, new = T, col = "blue", cex = 1, pch = 4,
  lwd = 2, labels = NULL, col_labels = col, cex_labels = 0.8, pos = 1,
  adj = NULL, ...)

Arguments

k0, k2

Numerical vectors giving coordinates for points to be plotted in the IBDtriangle.

new

Logical indicating if a new IBDtriangle should be drawn.

col, cex, pch, lwd

Parameters passed onto points.

labels

A character of same length as k0, or NULL.

col_labels, cex_labels, pos, adj

Parameters passed onto text (if labels is non-NULL).

...

Plot arguments passed on to IBDtriangle.

Author(s)

Magnus Dehli Vigeland

See Also

Examples

showInTriangle(k0=3/8, k2=1/8, label="3/4 siblings", pos=1)

paramlink

Parametric Linkage and Other Pedigree Analysis in R

v1.1-2
GPL (>= 2)
Authors
Magnus Dehli Vigeland [aut, cre], Thore Egeland [ctb], Guro Doerum [ctb]
Initial release
2018-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.