translate_shape_string() is a helper function for translating point shapes
given as a character vector into integers that are interpreted by the
grid system.
Usage
translate_shape_string(shape_string)
Value
An integer vector with translated shapes.
Arguments
shape_string
A character vector giving point shapes. Non-character
input will be returned.
translate_shape_string(c("circle", "square", "triangle"))
# Strings with 1 or less characters are interpreted as symbolstranslate_shape_string(c("a", "b", "?"))