translate_shape_string: Translating shape strings

View source: R/geom-point.R

translate_shape_stringR Documentation

Translating shape strings

Description

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)

Arguments

shape_string

A character vector giving point shapes.

Value

An integer vector with translated shapes.

Examples

translate_shape_string(c("circle", "square", "triangle"))

# Strings with 1 or less characters are interpreted as symbols
translate_shape_string(c("a", "b", "?"))

ggplot2 documentation built on June 22, 2024, 11:35 a.m.