hide: Hide figures (Method)

View source: R/modify.R

hideR Documentation

Hide figures (Method)

Description

Change the visibility of a figure from 1 to 0

Usage

hide(obj, index)

Arguments

obj

A figure composed of different figures

index

integer, the index of the element to hide

Value

The starting object with a hidden figure

Examples

# 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))

matRiks documentation built on May 29, 2024, 5:56 a.m.