Learn R Programming

loon (version 1.4.1)

glyph_to_pch: Glyph to Pch

Description

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

Usage

glyph_to_pch(glyph)

Value

a pch type

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.

Examples

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

Run the code above in your browser using DataLab