Learn R Programming

gpmap (version 0.1.2)

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

Description

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

Usage

# S3 method for 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

Examples

Run this code
# NOT RUN {
data(GPmaps)

#plot additive gpmap
plot(A)

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

Run the code above in your browser using DataLab