glyph_to_pch: Glyph to Pch

View source: R/loonGrob.R

glyph_to_pchR Documentation

Glyph to Pch

Description

turn a loon point glyph to an R graphics plotting 'character' (pch)

Usage

glyph_to_pch(glyph)

Arguments

glyph

glyph type in loon, must be "circle", "ocircle", "ccircle", "square", "osquare", "csquare", "triangle", "otriangle", "ctriangle", "diamond", "cdiamond", "odiamond". If the input glyph is not valid, NA is returned.

Value

a pch type

Examples

glyph_to_pch(c("circle", "ocircle", "ccircle",
               "square", "osquare", "csquare",
               "triangle", "otriangle", "ctriangle",
               "diamond", "cdiamond", "odiamond",
               "foo"))

loon documentation built on July 9, 2023, 5:48 p.m.