setPlotLabels {paramlink}R 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)


[Package paramlink version 1.1-5 Index]