titles-methods: Accessors for the title(s) of FeatureSet objects

Description Usage Arguments Value Examples

Description

Get or set the titles associated with a FeatureSet object. This should not be called directly.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
titles(object) <- value

titles(object)

## S4 method for signature 'PlotFeatureSet'
titles(object)

## S4 method for signature 'ggplot'
titles(object)

## S4 method for signature 'trellis'
titles(object)

## S4 method for signature 'gTree'
titles(object)

## S4 replacement method for signature 'PlotFeatureSet'
titles(object) <- value

## S4 method for signature 'FeatureSet'
titles(object)

Arguments

object

An object of (super)class PlotFeatureSet. For accession, also plot objects of class ggplot or trellis.

value

A named list of titles of the form list(main = "My title", sub = "My subtitle").

Value

A modified object of (super)class PlotFeatureSet.

Examples

1
2
3
4
5
library(ggplot2)
mt = datasets::mtcars
plt = qplot(mt$mpg, mt$cyl)
fs = makeFeatureSet(plt)
titles(fs)

gmbecker/recordr documentation built on May 24, 2021, 10:59 a.m.