R plot - 在一个点上画一个大圆圈 [英] R plot - make a big circle at a point
问题描述
如何制作一个大的点,而不是圆圈中的颜色?
How can I make a point that is a big, NOT colored in circle?
x0 和 y0 只是具有 1 个值的列表.
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.
推荐答案
要使单个绘图字符更大,请使用 cex
,如下所示:
To make the single plotting character larger, use cex
, as in:
points(x = x0, y = y0, col = "green", pch = 16, cex = 10)
请阅读(即使有点乏味)?par
了解基本图形选项.
Please read (even though it's kind of tedious) ?par
for base graphics options.
编辑
我想我应该补充(尽管我同意这个问题大部分是重复的)您问题的第二部分只需要 pch
的不同值.听起来像 pch = 1
就是你想要的,但你可以通过 example("points")
看到很多选项.
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 like pch = 1
is what you want, but you can see lots of options via example("points")
.
这篇关于R plot - 在一个点上画一个大圆圈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!