Skip to contents

Format or create shapes for a vector with categorical values

Usage

format_shapes(x, shapes = NULL, allow_duplicated = TRUE)

Arguments

x

Vector of categorical values for which we want to specify shapes.

shapes

Vector of shapes longer or equal the number of unique levels of x. Can be named or non-named. If NULL, shapes are generated.

Value

Named vector of shapes for all unique values of x.