控制 R 散点图中点的大小? [英] Control the size of points in an R scatterplot?
本文介绍了控制 R 散点图中点的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 R 中,plot()
函数采用一个 pch
参数来控制图中点的外观.我正在制作包含数万个点的散点图,并且更喜欢一个小的但不是太小的点.基本上,我发现 pch='.'
太小了,但 pch=19
太胖了.中间有什么东西或某种方式可以以某种方式缩小点吗?
In R, the plot()
function takes a pch
argument that controls the appearance of the points in the plot. I'm making scatterplots with tens of thousands of points and prefer a small, but not too small dot. Basically, I find pch='.'
to be too small, but pch=19
to be too fat. Is there something in the middle or some way to scale the dots down somehow?
推荐答案
试试 cex
参数:
?par
cex
一个数值给出绘制文本的数量和符号应该相对放大到默认.请注意,有些图形功能,例如plot.default 有这个参数与此图形相乘的名称参数,以及一些函数,例如点接受值向量哪些是回收的.其他用途将如果向量只取第一个值长度大于一的是提供.
这篇关于控制 R 散点图中点的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文