plot.EpiNet: Plot epistatic network.

View source: R/plotMethods.R

plot.EpiNetR Documentation

Plot epistatic network.

Description

Plot an epistatic network between a set of QTLs.

Usage

## S3 method for class 'EpiNet'
plot(x, ...)

Arguments

x

an object of class 'EpiNet'.

...

additional parameters (ignored)

Details

An object of class EpiNet is typically first retrieved from a Population object (using getEpiNet) before being plotted using plot.EpiNet().

Value

A plot of the epistatic network is displayed.

Author(s)

Dion Detterer, Paul Kwan, Cedric Gondro

See Also

Population, attachEpiNet, getEpiNet

Examples

# Build a population with an epistatic network attached
pop <- Population(
  popSize = 100, map = map100snp, QTL = 20,
  alleleFrequencies = runif(100), broadH2 = 0.9,
  narrowh2 = 0, traitVar = 40
)
pop <- attachEpiNet(pop)

# Retrieve and plot the epistatic network
epinet <- getEpiNet(pop)
plot(epinet)

epinetr documentation built on March 18, 2022, 7:01 p.m.