DisplayPars {GenomeGraphs} | R Documentation

## DisplayPars constructs objects of type DisplayPars which are used to effect the display of gdObjects

### 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

    DisplayPars(...)

### 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

    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)

[Package GenomeGraphs version 1.46.0 Index]