View source: R/magic_ped2plot.R
magic.ped2plot | R Documentation |
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.
magic.ped2plot( ped, basic = FALSE, show.partial = FALSE, w2h.ratio = 2, force.option = FALSE )
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. |
a HTML file of an interactive pedigree plot.
mpop <- magic.eval(n=8, m=1, reps=c(1,1,2), self=c(0,0,3), balanced=TRUE) magic.ped2plot(ped=mpop$ped)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.