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

setPlotLabels

Attach plot labels to a linkdat object


Description

This function attaches (or modifies) a character vector of plotting labels for the pedigree members of a linkdat object. This is useful since only numerical ID's are allowed in defining pedigrees in paramlink.

Usage

setPlotLabels(x, labels, ids = x$orig.ids)

Arguments

x

A linkdat object.

labels

A character vector of the same length as ids.

ids

A numeric vector of numerical IDs. Must be a subset of x$orig.ids.

Value

A new linkdat object, differing from x only in x$plot.labels.

Author(s)

Magnus Dehli Vigeland

See Also

Examples

x =  nuclearPed(1)
x = setPlotLabels(x, labels=c('Father', 'Mother', 'Son'))
plot(x)

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.