Learn R Programming

trackr (version 0.10.7)

nLayers<-: Accessors for the number of layers of GGplotFeatureSet objects

Description

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

Usage

nLayers(object) <- value

nLayers(object)

# S4 method for PlotFeatureSet nLayers(object)

# S4 method for ggplot nLayers(object)

# S4 method for trellis nLayers(object)

# S4 method for gTree nLayers(object)

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

# S4 method for GGplotFeatureSet nLayers(object)

Arguments

object

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

value

An integer representing the number of layers in 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)
nLayers(fs)
# }

Run the code above in your browser using DataLab