Learn R Programming

trackr (version 0.10.7)

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

Description

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

Usage

titles(object) <- value

titles(object)

# S4 method for PlotFeatureSet titles(object)

# S4 method for ggplot titles(object)

# S4 method for trellis titles(object)

# S4 method for gTree titles(object)

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

# S4 method for 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

Run this code
# NOT RUN {
library(ggplot2)
mt = datasets::mtcars
plt = qplot(mt$mpg, mt$cyl)
fs = makeFeatureSet(plt)
titles(fs)
# }

Run the code above in your browser using DataLab