makeTitle: Creates an object of class Title

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/GenomeGraphs-classes.R

Description

Creates an object of class Title which can be used to add a title to the plot

Usage

1
makeTitle(text, cex, color, size)

Arguments

text

The text that will make up the title

cex

Font size of the title

color

Font color of the title

size

Size of the viewport in which the title resides

Value

Object of class Title

Author(s)

Steffen Durinck and Jim Bullard

References

~put references to the literature/web site here ~

See Also

gdPlot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (text, cex, color, size) 
{
    dp <- getClass("Title")@prototype@dp
    if (!missing(cex)) 
        setPar(dp, "cex", cex)
    if (!missing(color)) 
        setPar(dp, "color", color)
    if (!missing(size)) 
        setPar(dp, "size", size)
    new("Title", title = text, dp = dp)
  }

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