plot.pedELRT: Function for plotting a pedELRT object

Description Usage Arguments Details Author(s) See Also Examples

Description

This function plots two graphs side-by-side of the ELRT and the power of the tests specified in the computeELRT functions

Usage

1
2
## S3 method for class 'pedELRT'
plot(x, inc.exact = FALSE, legend = FALSE, ...)

Arguments

x

a pedELRT object

inc.exact

a logical of whether to include the exact ELRT in the plot (default=FALSE)

legend

a logical of whether to include a legend in the plot (default=FALSE)

...

Additional arguments.

Details

Plotting function for pedELRT object. It plots the approximate or exact ELRT from what is calculated in the computeELRTX and computeEXLERT functions.

Author(s)

Jesse D. Raffa

See Also

computeAELRTA computeAELRTB computeAELRTC computeAELRTESS computeEXELRT

Examples

1
2
3
4
5
6
7
8
9
require(kinship2)
test1 <- data.frame(id  =c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14),
mom =c(0, 0, 0, 0, 2, 2, 4, 4, 6,  2,  0,  0, 12, 13),
dad =c(0, 0, 0, 0, 1, 1, 3, 3, 3,  7,  0,  0, 11, 10),
sex =c(1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 2, 2))
tped <- with(test1, pedigree(id, dad, mom, sex))
x <- computeRSPs(ped=tped)
elrtess <- computeAELRTESS(pedRSP=x,truehsq=0.3,null=seq(0.1,0.8,0.1))
plot(elrtess,inc.exact=TRUE,legend=TRUE)

jraffa/pedRSP documentation built on May 19, 2019, 11:51 p.m.