Learn R Programming

rehh (version 1.13)

rsbplot: Plot Rsb over a genome

Description

Plot Rsb over a genome.

Usage

rsbplot(data,plot.pval="TRUE",ylim.scan=2,pch=16,main=NA)

Arguments

data
A matrix with nsnps rows and 4 columns (Chromosome name, position of the SNP, Rsb, Pvalue (either unilateral or bilateral)) (e.g. obtained using ies2rsb function.
plot.pval
Either TRUE or FALSE if Pvalue should not be plotted
ylim.scan
An horizontal line is added at the corresponding coordinate, for instance to represent a significance threshold
pch
Type of the points representing SNPs in the plot(s)
main
Main Legend of the plot

Value

References

Gautier, M. and Naves, M. (2011). Footprints of selection in the ancestral admixture of a New World Creole cattle breed. Molecular Ecology, 20, 3128--3143.

See Also

calc_ehhs,scan_hh,distribplot,ihsplot

Examples

Run this code
data(wgscan.cgu) ; data(wgscan.eut) 
## results from a genome scan (44,057 SNPs)
#see ?wgscan.eut and ?wgscan.cgu for details
res.rsb<-ies2rsb(wgscan.cgu,wgscan.eut,"CGU","EUT")
rsbplot(res.rsb$res.rsb)

Run the code above in your browser using DataLab