scores2shapes {diffuStats} | R Documentation

## Translate values into shapes

### Description

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

### Usage

    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

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

[Package diffuStats version 0.104.0 Index]