Learn R Programming

trackr (version 0.10.7)

dataLabels<-: Accessors for the axis labels PlotFeatureSet objects

Description

Get or set the axis label information associated with a PlotFeatureSet object. This should not be called directly.

Usage

dataLabels(object) <- value

dataLabels(object)

# S4 method for PlotFeatureSet dataLabels(object)

# S4 method for ggplot dataLabels(object)

# S4 method for trellis dataLabels(object)

# S4 method for gTree dataLabels(object)

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

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

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

Run the code above in your browser using DataLab