annotationText-methods: Accessor method for the annotation text (slot...

Description Usage Arguments Value Examples

Description

Get the text annotations for a plot object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
annotationText(object)

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

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

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

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

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

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

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