Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In R graphics, what is the different between plotting characters (pch) 16 and 19?

Tags:

r

I can't find any documentation other than mentions of "filled" vs "solid".

library(graphics)
plot.new()
points(.48, .5, pch=19)
points(.52, .5, pch=16)

enter image description here

Edit: Winston Chang's explanation answeres my question pretty thoroughly https://github.com/hadley/ggplot2/issues/1757#issuecomment-247804365

like image 272
sharoz Avatar asked Sep 17 '16 19:09

sharoz


1 Answers

This may help:

Values of pch are stored internally as integers. The interpretation is

NA_integer_: no symbol.

0:18: S-compatible vector symbols.

19:25: further R vector symbols.

26:31: unused (and ignored).

32:127: ASCII characters.

128:255 native characters only in a single-byte locale and for the symbol font. (128:159 are only used on Windows.)

-32 ... Unicode code point (where supported).

The full text is here

like image 105
Valter Beaković Avatar answered Oct 13 '22 18:10

Valter Beaković