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.
name value pairs
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:
Returns an object of type DisplayPars, generally this will be called
during a call to the
new function for a particular gdObject.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.