scores2shapes: Translate values into shapes

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Translate 0/1 to shapes, by default "circle" and "square"

Usage

1
scores2shapes(x, shapes = c("circle", "square"))

Arguments

x

numeric vector to generate shapes from

shapes

character vector with two shapes, respectively zeroes and ones

Value

Character vector with shapes

Examples

1
2
set.seed(1)
scores2shapes(rbinom(n = 20, size = 1, prob = .5))

diffuStats documentation built on Feb. 22, 2021, 10 a.m.