除了提及“填充”和“固体”之外,我找不到任何文档。在R图形中,绘图字符(pch)16和19之间有什么不同?
library(graphics)
plot.new()
points(.48, .5, pch=19)
points(.52, .5, pch=16)
编辑:温斯顿昌的解释answeres我的问题几乎完全是https://github.com/hadley/ggplot2/issues/1757#issuecomment-247804365
除了提及“填充”和“固体”之外,我找不到任何文档。在R图形中,绘图字符(pch)16和19之间有什么不同?
library(graphics)
plot.new()
points(.48, .5, pch=19)
points(.52, .5, pch=16)
编辑:温斯顿昌的解释answeres我的问题几乎完全是https://github.com/hadley/ggplot2/issues/1757#issuecomment-247804365
这可能会帮助:
PCH的值在内部存储为整数。的解释是
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).
全文here
“S兼容矢量符号”和“另一个R矢量符号”之间的区别是什么? – sharoz
这是我的理解,但我可能是错的。 R是基于S语言的,所以如果编写R代码也要与S一起使用S兼容的pch,否则应该没有区别。 –
从哈德利的新书R for Data Science:注意,有一些看似重复:0,15和22都是正方形。不同之处在于颜色和填充美学的交互作用。中空形状(0-14)的边界由颜色决定;实心形状(15-18)充满颜色;填充的形状(21-24)有一个颜色边框,并填充填充。
似乎有人有一个边界或类似一个......点(0.25,.5,pch = 19,cex = 20,col = scales :: alpha(“red”,0.5),lwd = 8) ; (0.5,.5,pch = 16,cex = 20,col = scales :: alpha(“red”,0.5),lwd = 8)' – user20650
也许这个更清楚。 ,pch = 19,cex = 20,col = scales :: alpha(“red”,0.5),lwd = 20);点(0.5,.5,pch = 19,cex = 0,点= 0.5)。 20,col = scales :: alpha(“red”,0.5),lwd = 0); 点(0.5,.5,pch = 16,cex = 20,col = scales :: alpha(“black”,0.5),lwd = 0)' – user20650
@sharoz你应该让你的编辑成为答案并接受它。我会提高它! – Sparhawk