R 图形的命名点
我想命名从基本函数 plot()
获得的 R
图形的一些点。
更准确地说,我有一个二维参数函数 t-> (a(t),b(t)),然后绘制点 (a(t),b(t))。我想打印每个点对应的 t 值。
谢谢
I would like to name some points of a R
graphic, got from the basic function plot()
.
More precisely I have a 2-dimensional parametric function
t -> (a(t),b(t)), and I plot the points (a(t),b(t)). I would like to print the value of t corresponding to each point.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以按如下方式使用text():
如果您不需要所有点,只需将其中一些点发送到text()。
You can use text() as below:
If you don't want all of the points, just send some of them to text().
我不挖掘
t -> (a(t),b(t))
表达式...没关系,我发现你想要显示值而不是绘制字符。这里是:但是,我建议使用 ggplot2 来完成此操作:
不幸的是,除非您想出一些虚拟数据集,否则我无法在这方面为您提供更多帮助。
I don't dig
t -> (a(t),b(t))
expression... nevermind, I figured out that you want to display values instead of plotting characters. Here goes:However, I recommend doing this with
ggplot2
:Unfortunately, I can't help you more with this one unless you come up with some dummy dataset.
回答你问题的后半部分,
以下示例显示如何使用一对参数函数来定义点的位置以及函数的参数:
In reply to the second half of your question,
The following example shows how a pair of parametric functions can be used to define the locations of points, as well as the argument of the function: