plot.gpmap: Functions for creating lineplots of genotype-phenotype (GP)...

Description Usage Arguments Author(s) Examples

View source: R/gpmaps.R

Description

Function for creating lineplots for genotype-phenotype (GP) map (an object of class gpmap) with 1-3 biallelic loci.

Usage

1
2
3
 
## S3 method for class 'gpmap'
plot(x, show=1, decomposed=FALSE, ...)

Arguments

x

A gpmap object

show

Which map (only used if >1 map in gpmap object) to plot

decomposed

Decomposition into monotone and non-monotone component plotted if TRUE

...

ignored

Author(s)

Arne B. Gjuvsland <arne.gjuvsland@nmbu.no> and Yunpeng Wang <yunpeng.wng@gmail.com>

Examples

1
2
3
4
5
6
7
8
data(GPmaps)

#plot additive gpmap
plot(A)

#plot decomposition of GPmap from Cheverud & Routman (1995)
decomp <- decompose_monotone(mouseweight)
plot(decomp, decomposed=TRUE)

Example output

Loading required package: isotone
Loading required package: plyr
Loading required package: ggplot2
Loading required package: foreach
[[1]]

Warning message:
executing %dopar% sequentially: no parallel backend registered 
[[1]]

gpmap documentation built on Feb. 16, 2021, 1:06 a.m.