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

b2slab/diffuStats documentation built on Oct. 2, 2018, 12:58 p.m.