hide | R Documentation |
Change the visibility of a figure from 1 to 0
hide(obj, index)
obj |
A figure composed of different figures |
index |
integer, the index of the element to hide |
The starting object with a hidden figure
# concatenate three figures into an object
my_shapes <- cof(square(), triangle(), slice())
# draw object
draw(my_shapes)
# hide the triangle
draw(hide(my_shapes, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.