decof {matRiks}R Documentation

Split the elements of a figure (Method)

Description

Return the elements composing a figure

Usage

decof(obj)

## S3 method for class 'figure'
decof(obj)

Arguments

obj

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

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)

Methods (by class)

Examples

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

[Package matRiks version 0.1.3 Index]