Last data update: 2014.03.03

R: Plotting hybridsim objects
plot.hybridsimR Documentation

Plotting hybridsim objects

Description

A hybridsim object can be plotted using the function plot.hybridsim, which is also used as the dedicated plot method. This function represents expected hybrid markers frequencies on a neutral sheet.

Usage

## S3 method for class 'hybridsim'
plot(x,hybrid = c("F1", "BxA", "BxB"), col = "lightgreen",
 shade = 0.8, markers = x$SelMarkers, ...)

Arguments

x

A hybridsim object.

hybrid

The hybrid classes to simulate: "F1", "BxA" or "BxB".

col

A specification for the default plotting color.

shade

A specification for the default alpha value.

markers

a numeric vector with markers to plot. By default markers under selection by hybridsim function.

...

Arguments to be passed to methods, such as graphical parameters (see par).

Author(s)

F. Balao fbalao@us.es, J.L. García-Castaño

See Also

hybridsim hybridize

Examples

## simulate parentals and F1 hybrids
hybrids<-hybridsim(Nmarker=100, Na=30, Nb=30, Nf1=30, type="selection", S=1, Nsel=25, hybrid="F1")

plot.hybridsim(hybrids, hybrid="F1")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(AFLPsim)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/AFLPsim/plot.hybridsim.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.hybridsim
> ### Title: Plotting hybridsim objects
> ### Aliases: plot.hybridsim
> ### Keywords: hybridization simulation
> 
> ### ** Examples
> 
> ## simulate parentals and F1 hybrids
> hybrids<-hybridsim(Nmarker=100, Na=30, Nb=30, Nf1=30, type="selection", S=1, Nsel=25, hybrid="F1")
> 
> plot.hybridsim(hybrids, hybrid="F1")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>