Learn R Programming

matRiks (version 0.1.3)

identity: Identity rule (Method)

Description

Apply an identity rule to the figures in a matrix (i.e., no changes)

Usage

identity(fig, ...)

# S3 method for figure identity(fig, ...)

Value

An object composed of figures combined according to an identity rule

Arguments

fig

Vector of figures obtained with the concatenation of figures function (`cof()`). Three figures are needed.

...

Other arguments

Methods (by class)

  • identity(figure): Identity figure

Examples

Run this code
# generate a matrix with 9 squares
draw(mat_apply(square(), hrules = "identity"))
# generate a matrix with 9 squares
draw(mat_apply(square(), hrules = "identity"))

Run the code above in your browser using DataLab