Learn R Programming

trackr (version 0.10.7)

position<-: Accessors for the position of GGplotFeatureSet objects

Description

Get or set the position associated with a GGplotFeatureSet object. This should not be called directly.

Usage

position(object) <- value

position(object)

# S4 method for PlotFeatureSet position(object)

# S4 method for ggplot position(object)

# S4 method for trellis position(object)

# S4 method for gTree position(object)

# S4 method for GGplotFeatureSet position(object) <- value

# S4 method for GGplotFeatureSet position(object)

Arguments

object

An object of class GGplotFeatureSet. For accession, also plot objects of class ggplot.

value

A named list of positioning information in each layer of the plot.

Value

A modified object of class GGplotFeatureSet.

Examples

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

Run the code above in your browser using DataLab