magic.ped2plot: Plot pedigree.

View source: R/magic_ped2plot.R

magic.ped2plotR Documentation

Plot pedigree.

Description

This function plots the pedigree based on the type of design. By default, the function will plot a comprehensive pedigree for n of 4, 8, 16, 32, 64, 128 and a simple pedigree for other n. The pedigree is generated from either magic.ped or magic.eval. Note: if the MAGIC design is created from a user-provided pedigree, then the function will always plot a simple pedigree.

Usage

magic.ped2plot(
  ped,
  basic = FALSE,
  show.partial = FALSE,
  w2h.ratio = 2,
  force.option = FALSE
)

Arguments

ped

a pedigree.

basic

a logical indicator of whether it is a basic design or not.

show.partial

a logical indicator of whether to plot a partial pedigree or not.

w2h.ratio

a numerical value of width-to-height-ratio in the pedigree plot.

force.option

a logical indicator of whether to force the function to plot using a simpler option.

Value

a HTML file of an interactive pedigree plot.

Examples


mpop <- magic.eval(n=8, m=1, reps=c(1,1,2), self=c(0,0,3), balanced=TRUE)
magic.ped2plot(ped=mpop$ped)



cjyang-sruc/magicdesign documentation built on March 19, 2022, 9:34 a.m.