R图-在一点画一个大圆
我怎样才能提出一个大的、没有彩色圆圈的点?
x0 和 y0 只是具有 1 值的列表。
所以这只是绘制一个值:
points(x=x0,y=y0,col="green",pch=16)
但是圆圈有点小,并且它是彩色的。
How can I make a point that is a big, NOT colored in circle?
x0 and y0 are just lists with 1 value.
So this just plots one value:
points(x=x0,y=y0,col="green",pch=16)
But the circle is sort of small, and it's colored in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
要使单个绘图字符更大,请使用
cex
,如下所示:请阅读(尽管有点乏味)
?par
了解基本图形选项。编辑
我想我应该添加(尽管我同意这个问题大部分是重复的),你的问题的第二部分只需要一个不同的
pch
值。听起来pch = 1
就是您想要的,但您可以通过example("points")
看到很多选项。To make the single plotting character larger, use
cex
, as in:Please read (even though it's kind of tedious)
?par
for base graphics options.EDIT
I suppose I should add (even though I agree this question is mostly a duplicate) that the second part of your question simply requires a different value for
pch
. Sounds likepch = 1
is what you want, but you can see lots of options viaexample("points")
.根据您想要的圆圈大小,您还可以考虑使用
symbols()
函数。Depending how big you the circles you want, you could also consider the
symbols()
function.包 shape 包含用于绘制各种图形形状的函数集合(请参阅 vignette("shape") )。在您的情况下:
The package shape contains a collection of functions for plotting all kind of graphical shapes ( see vignette("shape") ). In your case: