Learn R Programming

snpEnrichment (version 1.2-3)

plot-methods: Plot method (S4) for Enrichment object

Description

plot is a generic function for plotting of R objects. The function invokes particular methods which depend on the class of the first argument.

Usage

## S3 method for class 'Enrichment':
plot(x, onlyGenome = FALSE, chr = NULL, 
           types = c("eSNP", "xSNP"), ...)

Arguments

x
[Enrichment]: an object of class Enrichment which the Z statistics have to be drawn.
onlyGenome
[character]: if TRUE (default onlyGenome=FALSE) plot Z statistics for genome only.
chr
[vector(numeric)]: chr=NULL (default) plot Z statistics for the whole genome and all chromosomes or the selected chromosomes.
types
[vector(character)]: plot the selected analysis for "eSNP" and/or "xSNP".
...
[any]: Arguments to be passed to methods, such as graphical parameters (see par)

See Also

Overview : snpEnrichment-package Classes : Enrichment, Chromosome, EnrichSNP Methods : plot, reSample, excludeSNP, compareEnrichment, enrichment, is.enrichment, chromosome, is.chromosome Functions : initFiles, writeLD, readEnrichment

Examples

Run this code
data(toyEnrichmentM1)
reSample(toyEnrichmentM1, 10)
plot(toyEnrichmentM1)

Run the code above in your browser using DataLab