Learn R Programming

matRiks (version 0.1.3)

difference: Difference distractor (Method)

Description

Generate difference distractor from a matriks

Usage

difference(obj, seed, ...)

# S3 method for matriks difference(obj, seed = 666, ...)

Value

An object of class figure that is the difference distractor of a matrix

An object of class figure that is the difference distractor of a matrix

Arguments

obj

matriks, The matriks for which the distractor is generated

seed

seed

...

other arguments

Methods (by class)

  • difference(matriks): Difference distractors

Examples

Run this code
# create a matrix
m1 <- mat_apply(hexagon(), hrules = "lty")
# draw the matrix
draw(m1)
# draw the difference distractor
draw(difference(m1))
# create a matrix
m1 <- mat_apply(hexagon(), hrules = "lty")
# draw the matrix
draw(m1)
# draw the difference distractor
draw(difference(m1))

Run the code above in your browser using DataLab