makeLegend: Creates an object of class Legend

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

View source: R/GenomeGraphs-classes.R

Description

Creates an object of class Legend which can be used to plot a legend

Usage

1
makeLegend(text, fill, cex)

Arguments

text

Vector of characters representing the legend

fill

Vector of colors to fill the legend boxes

cex

Font size of the legend

Value

Object of class Legend

Author(s)

Jim Bullard and Steffen Durinck

References

~put references to the literature/web site here ~

See Also

See Also as gdPlot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
##---- 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, fill, cex) 
{
    dp <- getClass("Legend")@prototype@dp
    if (!missing(cex)) 
        setPar(dp, "cex", cex)
    if (!missing(fill)) 
        setPar(dp, "color", fill)
    new("Legend", legend = text, dp = dp)
  }

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