show {matRiks} | R Documentation |
Show figures (Method)
Description
Change the visibility of a figure from 0 to 1
Usage
show(obj, index)
## S3 method for class 'figure'
show(obj, index = "Full")
Arguments
obj |
A figure composed of different figures |
index |
integer, the index of the element to hide |
Value
The starting object with one more visible figure
The starting object with one more visible figure
Methods (by class)
-
show(figure)
: Show figuresChange the visibility of a figure from 0 to 1
Examples
# concatenate three figures into an object. The first figure is not visible
my_shapes <- cof(square(vis = 0), triangle(), slice())
# draw object
draw(my_shapes)
# show the square
draw(show(my_shapes, 1))
# concatenate three figures into an object. The first figure is not visible
my_shapes <- cof(square(vis = 0), triangle(), slice())
# draw object
draw(my_shapes)
# show the square
draw(show(my_shapes, 1))
[Package matRiks version 0.1.3 Index]