View source: R/s3-ggplot2-Layer.R
opts_Layer | R Documentation |
These options will be used on objects of class 'Layer'.
opts_Layer(constructor = c("default", "layer", "next", "environment"), ...)
constructor |
String. Name of the function used to construct the object, see Details section. |
... |
Additional options used by user defined constructors through the |
Depending on constructor
, we construct the object as follows:
"default"
: We attempt to use the function originally used to create the
plot.
"layer"
: We use the ggplot2::layer()
function
"environment"
: Reconstruct the object using the general environment method
(which can be itself tweaked using opts_environment()
)
The latter constructor is the only one that reproduces the object exactly
since Layers are environments and environments can't be exactly copied (see ?opts_environment
)
An object of class <constructive_options/constructive_options_Layer>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.