qtlnet (version 1.3.6)

plot.qdg: Plot a directed graph

Description

Plot the outputs of the qdgAlgo and qdgSEM functions.

Usage

## S3 method for class 'qdg':
plot(x, simple = FALSE, breaks = c(1, 3, 10, 20),
  col = c(pos.color = "green", neg.color = "red",
  pheno.color = "yellow", qtl.color = "magenta"),
  include.qtl = TRUE, ...)

Arguments

x
list containing the output of the qdgAlgo or qdgSEM functions.
simple
plot a simple graph (no QTL nodes, color or varying node size or arrow thickness).
breaks
control the thickness of the arrows according to the values of the LOD scores. Must be a vector of length four.
col
color of the arrows. When plotting from qdgSEM green and red arrows represent positive and negative path coefficients, respectively. Arrows are black by default when plotting from qdgAlgo.
include.qtl
If TRUE, the QTL nodes are included in the plot.
...
Plot arguments (not used).

Details

Create directed graph as an object of Class graphNEL-class and plot it. Size of a node is proportional to its degree (number of connections).

See Also

graphNEL-class, qdgAlgo, qdgSEM

Examples

Run this code
example(acyclic)
example(cyclica)
example(cyclicb)
example(cyclicc)

Run the code above in your browser using DataCamp Workspace