glayer gives a ggplot2 layer object the S4 class glayer,
see glayer-class
. ggplot layer objects are
usually non-specific proto
class
objects. A layer should contain an embed variable before
being given the class 'glayer.' See the function bodies
of glyph
and grid
for
examples.
1 | glayer(layer)
|
layer |
a proto object that can be used as a layer
by the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.