Learn R Programming

rehh (version 2.0.4)

xpehhplot: Plot XP-EHH over a genome

Description

Plot XP-EHH over a genome.

Usage

xpehhplot(data, plot.pval = TRUE, ylim.scan = 2, pch = 16,
            cex = 0.5, cex.lab = 1.25, main = NA, cex.main = 1.5,
            cex.axis=1.)

Arguments

data

A dataframe obtained using ies2xpehh 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)

cex

Size of the points representing SNPs in the plot(s)

cex.lab

Size of axis legends

main

Main Legend of the plot

cex.main

Size of the main legend

cex.axis

Size of the axis annotations

Value

The function returns a plot

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.

Sabeti, P.C. et al. (2007). Genome-wide detection and characterization of positive selection in human populations. Nature, 449, 913--918.

See Also

ies2xpehh

Examples

Run this code
# NOT RUN {
data(wgscan.cgu) ; data(wgscan.eut)
## results from a genome scan (44,057 SNPs)
#see ?wgscan.eut and ?wgscan.cgu for details
res.xpehh<-ies2xpehh(wgscan.cgu,wgscan.eut,"CGU","EUT")
xpehhplot(res.xpehh)
# }

Run the code above in your browser using DataLab