dataLabels-methods: Accessors for the axis labels PlotFeatureSet objects

Description Usage Arguments Value Examples

Description

Get or set the axis label information associated with a PlotFeatureSet 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
dataLabels(object) <- value

dataLabels(object)

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

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

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

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

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

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

Arguments

object

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

value

A named list of variable labels of the form list(x = "X axis label", y = "Y axis label", ...).

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)
dataLabels(fs)

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