Learn R Programming

rehh (version 1.13)

distribplot: Distribution of standardized iHS or Rsb values

Description

Plot the observed distribution of standardized iHS or Rsb values together with the expected standard Gaussian distribution

Usage

distribplot(data,col=c("blue","red"), main="iHS distribution",xlab="iHS")

Arguments

data
A vector of iHS or Rsb 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

Value

See Also

scan_hh,ihh2ihs,ies2rsb,ihsplot,rsbplot

Examples

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

Run the code above in your browser using DataLab