setPlotLabels: Attach plot labels to a linkdat object

View source: R/setPlotLabels.R

setPlotLabelsR Documentation

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.

See Also

plot.linkdat

Examples


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


paramlink documentation built on April 15, 2022, 9:06 a.m.