reflecter: make a reflection of a matrix on the y axis

View source: R/main.R

reflecterR Documentation

make a reflection of a matrix on the y axis

Description

Good for making symmetrical arrowheads

Usage

reflecter(x, add_reflection = TRUE)

Arguments

x

matrix

add_reflection

add to x in reverse order

Value

a matrix with y reversed sign and rows in reverse order

Examples

reflecter(diag(c(1,2)))

arrowheadr documentation built on June 22, 2024, 9:38 a.m.