Description Objects from the Class Slots Methods Warning Author(s) Examples
The DisplayPars functions analagously to par and
gp. Generally the class is instantiated using the DisplayPars
function rather than directly.
Objects can be created by calls of the form DisplayPars(...)
rather than calls to: new("DisplayPars", ...)
by calling the
DisplayPars
function directly in the constructor the gdObjects
are guaranteed to have the appropriate defaults.
pars
:Object of class "environment"
Generally
this slot is not accessed directly.
signature(obj = "DisplayPars")
: gets a
graphical parameter by name
signature(.Object = "DisplayPars")
: This
constructor should not be called directly.
signature(obj = "DisplayPars")
: sets a
graphical parameter - see the example below. Often it is easier to set
the graphical parameter from within the gdObject.
signature(object = "DisplayPars")
: prints current
graphical parameters
The DisplayPars
class should not be manipulated directly. The
preferred method for interacting with the class can be seen in the
example below.
James Bullard
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | showClass("DisplayPars")
if (interactive()) {
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(size = 2))
## plot it.
gdPlot(list(genesplus, new("Title", title = "genes")), minbase, maxbase)
## to obtain a list of the current graphical parameters:
print(genesplus@dp)
## to set a parameter:
setPar(genesplus, "protein_coding", "pink")
gdPlot(list(genesplus, new("Title", title = "genes")), minbase, maxbase)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.