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

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"))
#> circle ocircle ccircle square osquare csquare triangle otriangle #> 19 1 21 15 0 22 17 2 #> ctriangle diamond cdiamond odiamond foo #> 24 18 23 5 NA