View source: R/pedtodot_verbatim.R
pedtodot_verbatim | R Documentation |
Pedigree-drawing with graphviz
pedtodot_verbatim(f, run = FALSE, toDOT = FALSE, ...)
f |
A data.frame containing pedigrees, each with pedigree id, individual id, father id, mother id, sex and affection status. |
run |
A flag to run dot/neato on the generated .dot file(s). |
toDOT |
A flag to generate script for |
... |
Other flag(s) for |
Read a GAS or LINKAGE format pedigree, return a digraph in the dot language and optionally call dot/neato to make pedigree drawing.
This is a verbatim translation of the original pedtodot implemneted in Bash/awk in contrast to pedtodot
which was largely a mirror.
To check independently, try xsel -i < <(cat pedtodot_verbatim.R)
or cat pedtodot_verbatim.R | xsel -i
and paste into an R session.
No value is returned but outputs in .dot, .pdf, and .svg.
Adapted from Bash/awk script by David Duffy
## Not run:
# pedigree p3 in pedtodot
pedtodot_verbatim(p3,run=TRUE,toDOT=TRUE,return="verbatim")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.