Learn R Programming

matRiks (version 0.1.3)

decof: Split the elements of a figure (Method)

Description

Return the elements composing a figure

Usage

decof(obj)

# S3 method for figure decof(obj)

Value

A named list of figures of length equal to the total of shapes in a figure (both visible and not visible)

A named list of figures of length equal to the total of shapes in a figure (both visible and not visible)

Arguments

obj

The figure of class figure to be split in its single components

Methods (by class)

  • decof(figure): Split the elements of a figure

    Return the elements composing a figure

Examples

Run this code
# apply the size rule on a triangle for creating a matriks with 9 cell
my_mat1 <- mat_apply(triangle(), hrules = "size")
my_mat2 <- mat_apply(dot(), hrules = "shade")
my_mat <- com(my_mat1, my_mat2)
# Return the figures composing the first cell of the matriks
decof(my_mat$Sq2)
# apply the size rule on a triangle for creating a matriks with 9 cell
my_mat1 <- mat_apply(triangle(), hrules = "size")
my_mat2 <- mat_apply(dot(), hrules = "shade")
my_mat <- com(my_mat1, my_mat2)
# Return the figures composing the first cell of the matriks
decof(my_mat$Sq2)

Run the code above in your browser using DataLab