decof: Split the elements of a figure (Method)

View source: R/decof.R

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

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

    Return the elements composing a figure

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)

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