File: translate_shape_string.Rd

package info (click to toggle)
r-cran-ggplot2 3.5.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 9,944 kB
  • sloc: sh: 15; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom-point.R
\name{translate_shape_string}
\alias{translate_shape_string}
\title{Translating shape strings}
\usage{
translate_shape_string(shape_string)
}
\arguments{
\item{shape_string}{A character vector giving point shapes.}
}
\value{
An integer vector with translated shapes.
}
\description{
\code{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.
}
\examples{
translate_shape_string(c("circle", "square", "triangle"))

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