Description Usage Arguments Value Examples
Get or set the number of layers associated with a GGplotFeatureSet object. This should not be called directly.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | nLayers(object) <- value
nLayers(object)
## S4 method for signature 'PlotFeatureSet'
nLayers(object)
## S4 method for signature 'ggplot'
nLayers(object)
## S4 method for signature 'trellis'
nLayers(object)
## S4 method for signature 'gTree'
nLayers(object)
## S4 replacement method for signature 'GGplotFeatureSet'
nLayers(object) <- value
## S4 method for signature 'GGplotFeatureSet'
nLayers(object)
|
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. |
A modified object of class GGplotFeatureSet.
1 2 3 4 5 | library(ggplot2)
mt = datasets::mtcars
plt = qplot(mt$mpg, mt$cyl)
fs = makeFeatureSet(plt)
nLayers(fs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.