Learn R Programming

paramlink (version 1.1-2)

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.

See Also

IBDtriangle, examineKinships

Examples

Run this code
# NOT RUN {
showInTriangle(k0=3/8, k2=1/8, label="3/4 siblings", pos=1)

# }

Run the code above in your browser using DataLab