Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

eqtl (version 1.1-7)

plotRsq: Plot R square data

Description

Draw histograms of R square value distribution for rsq object.

Usage

plotRsq( rsq, par=c(2,2), ...)

Arguments

rsq
An object of class rsq. See calc.Rsq for function details.
par
A vector of two integers corresponding to the mfrow parameter of the par() function.
...
Passed to the function hist and par when they are called.

Value

Details

Draw histograms of R square value distribution from an object of class rsq. Three histograms are drawn: the first one shows the R square value distribution of single QTLs. The second shows the distribution for QTL interactions. The last one shows all R square values distribution.

See Also

calc.Rsq,peak.2.array

Examples

Run this code
data(seed10);

seed10 <- calc.genoprob( cross=seed10, step=2, off.end=0, error.prob=0,
	map.function='kosambi', stepwidth='fixed');
seed10 <- sim.geno( cross=seed10, step=2, off.end=0, error.prob=0,
	map.function='kosambi', stepwidth='fixed');

out.em <- scanone( seed10, pheno.col=1:50, model='normal', method='hk');
out.peak <- define.peak(out.em,'all');
out.rsq <- calc.Rsq(seed10,out.peak);

# plotting R quare data
plotRsq(out.rsq);
plotRsq(out.rsq,par=c(1,3));

Run the code above in your browser using DataLab