Unlimited learning, half price | 50% off
Get 50% off unlimited learning

rehh (version 2.0.4)

distribplot: Distribution of standardized iHS, Rsb or XP-EHH values

Description

Plot the observed distribution of standardized iHS, Rsb or XP-EHH values together with the expected standard Gaussian distribution

Usage

distribplot(data, lty = 1, lwd = 1.5,col = c("blue", "red"),
            main = "Genome-wide distribution", xlab = "", cex.main = 1.5,
            cex.lab = 1.25, qqplot = TRUE)

Arguments

data

A vector of iHS, Rsb or XPEHH values.

col

A vector describing color of the Observed and expected Gaussian distribution

main

Character string for the plot legend

xlab

Character string for the X-axis legend

cex.lab

Size of axis legends

cex.main

Size of the main legend

lty

Line Type

lwd

Line Width

qqplot

If TRUE a qq-plot is drawn

Value

The function returns a plot.

See Also

scan_hh,ihh2ihs,ies2rsb,ihsplot,rsbplot,ies2xpehh,xpehhplot

Examples

Run this code
# NOT RUN {
data(wgscan.cgu)
## results from a genome scan (44,057 SNPs) see ?wgscan.eut for details
val.ihs<-ihh2ihs(wgscan.cgu)$iHS[,3]
##standardize
distribplot(val.ihs,main="iHS (CGU population)")
dev.off()
# }

Run the code above in your browser using DataLab