Learn R Programming

trackr (version 0.10.7)

annotationText: Accessor method for the annotation text (slot "annotationtext") of the plot object.

Description

Get the text annotations for a plot object.

Usage

annotationText(object)

# S4 method for PlotFeatureSet annotationText(object)

# S4 method for ggplot annotationText(object)

# S4 method for trellis annotationText(object)

# S4 method for gTree annotationText(object)

# S4 method for PlotFeatureSet annotationText(object)

Arguments

object

An object of class PlotFeatureSet, GGplotFeatureSet, TrellisFeatureSet, ggplot, or trellis.

Value

A character vector of text annotations appearing on the plot.

Examples

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

Run the code above in your browser using DataLab