Last data update: 2014.03.03

R: function to plot 2D scan results
plot.scan.gwaa.2DR Documentation

function to plot 2D scan results

Description

Plots results of 2D analysis produced by scan.glm.2D or scan.haplo.2D

Usage

	## S3 method for class 'scan.gwaa.2D'
plot(x, y, ..., df=1)

Arguments

x

object of type scan.gwaa.2D-class, as returned by scan.glm.2D or scan.haplo.2D

y

this argument is not used

...

additional arguments to be passed to plot

df

Whether 1, 2, or "all" d.f.s should be plotted. Note that for scan.haplo.2D 1 and 2 d.f. list the same values.

Details

Now plots only "allelelic" results. This is fine for scan.haplo.2Das only alleic tests are produced; however, scan.glm.2D also produces "genotypic" results.

Value

No value returned.

Author(s)

Yurii Aulchenko

See Also

scan.gwaa.2D-class, scan.glm.2D, scan.haplo.2D

Examples

require(GenABEL.data)
data(srdta)
a <- scan.glm.2D("qt3~CRSNP",data=srdta,snps=c(1:10))
# "allelic" results
plot(a)
# to plot "genotypic" results:
filled.contour(x=a$map,y=a$map,z=-log10(a$P2df))

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(GenABEL)
Loading required package: MASS
Loading required package: GenABEL.data
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GenABEL/plot.scan.gwaa.2D.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.scan.gwaa.2D
> ### Title: function to plot 2D scan results
> ### Aliases: plot.scan.gwaa.2D
> ### Keywords: hplot
> 
> ### ** Examples
> 
> require(GenABEL.data)
> data(srdta)
> a <- scan.glm.2D("qt3~CRSNP",data=srdta,snps=c(1:10))
> # "allelic" results
> plot(a)
> # to plot "genotypic" results:
> filled.contour(x=a$map,y=a$map,z=-log10(a$P2df))
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>