Learn R Programming

snpEnrichment (version 1.4-0)

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, what = "Genome", types = c("eSNP", "xSNP"), 
           ggplot = FALSE, pvalue = TRUE, ...)

Arguments

x
[Enrichment]: an object of class Enrichment which the Z statistics have to be drawn.
what
[character or vector(numeric)]: default what="Genome") plot Z statistics for genome only (what must be: "All", "Genome" or numeric vector).
types
[vector(character)]: plot the selected analysis for "eSNP" and/or "xSNP".
ggplot
[logical]: use ggplot (default ggplot=FALSE) instead of classic plot method.
pvalue
[logical]: if 'TRUE', pvalue convergense is plotted. Otherwise, Z statistic is plotted.
...
[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(toyEnrichment)
reSample(toyEnrichment, 10)
plot(toyEnrichment)

Run the code above in your browser using DataLab