scores2shapes {diffuStats} | R Documentation |
Translate 0/1 to shapes, by default "circle"
and
"square"
scores2shapes(x, shapes = c("circle", "square"))
x |
numeric vector to generate shapes from |
shapes |
character vector with two shapes, respectively zeroes and ones |
Character vector with shapes
set.seed(1) scores2shapes(rbinom(n = 20, size = 1, prob = .5))