DisplayPars: DisplayPars constructs objects of type DisplayPars which are...

Description Usage Arguments Details Value Author(s) Examples

View source: R/GenomeGraphs-classes.R

Description

DisplayPars takes any number of named arguments which will be used by the drawGD method of the gdObject. These arguments are analagous to both par and gp of the traditional and grid graphics systems respectively. Different functions support different graphical parameters - thus it is necessary to consult the documentation of the particular gdObject to determine which DisplayPars will be used.

Usage

1

Arguments

...

name value pairs

Details

It is not recommended to call new("DisplayPars", ...) directly; rather this function DisplayPars() should be called instead. If a gdObject has already been instantiated then the appropriate method for changing graphical parameters is: setPar.

Value

Returns an object of type DisplayPars, generally this will be called during a call to the new function for a particular gdObject.

Author(s)

James Bullard

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
minbase = 10000
maxbase = 15000
mart <- useMart("ensembl", dataset = "scerevisiae_gene_ensembl")
genesplus <- new("GeneRegion", start = minbase, end = maxbase, biomart = mart,
                strand = "+", chromosome = "I", dp = DisplayPars(color =
                "red"))
gaxis <- new("GenomeAxis", add53 = TRUE, add35 = TRUE)
genesminus <- new("GeneRegion", start = minbase, end = maxbase, biomart = mart,
                strand = "-", chromosome = "I", dp = DisplayPars(color =
                "purple", size = 2))
title <- new("Title", title = "genes in a region")
gdPlot(list(genesplus, gaxis, genesminus, title), minbase, maxbase)

GenomeGraphs documentation built on Oct. 31, 2019, 4:34 a.m.