Learn R Programming

matRiks (version 0.1.3)

show: Show figures (Method)

Description

Change the visibility of a figure from 0 to 1

Usage

show(obj, index)

# S3 method for figure show(obj, index = "Full")

Value

The starting object with one more visible figure

The starting object with one more visible figure

Arguments

obj

A figure composed of different figures

index

integer, the index of the element to hide

Methods (by class)

  • show(figure): Show figures

    Change the visibility of a figure from 0 to 1

Examples

Run this code
# 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))

Run the code above in your browser using DataLab