使用 R 绘制大量数字,但并未显示所有数字
我正在尝试使用 R 在图表上渲染 739455 个数据点,但在 x 轴上我无法查看所有这些数字,有什么办法可以做到这一点?
我是 R 新手。
谢谢
I am trying to render 739455 data point on a graph using R, but on the x-axis I can not view all those numbers, is there a way I can do that?
I am new to R.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如其他人建议的那样,尝试
hist
、hexbin
、plot(密度(node))
,因为这些是处理比像素更多的点的标准方法。 (我喜欢使用参数breaks = "FD"
设置hist
- 它往往比默认设置有更好的断点。)您可能会在使用中找到一些乐趣iplots 包,一个交互式绘图包。对应的命令有
ihist
、iplot
等。由于您拥有 Mac,最新的Acinonyx
软件包可能会更有趣。您可以轻松地放大和缩小。我建议从iplots
包开始,因为它有更多文档和一个不错的网站。如果您有一个包含多个变量的数据框,而不仅仅是
节点
,那么能够链接不同的图,使得一个图中的刷点在另一个图中突出显示它们将使整个过程更加刺激和高效。这并不是说您应该忽略 hexbin 和其他想法 - 这些仍然非常有用。请务必检查 hexbin 的选项,例如
?hexbin
。As others suggested, try
hist
,hexbin
,plot(density(node))
, as these are standard methods for dealing with more points than pixels. (I like to sethist
with the parameterbreaks = "FD"
- it tends to have better breakpoints than the default setting.)Where you may find some joy is in using the
iplots
package, an interactive plotting package. The corresponding commands includeihist
,iplot
, and more. As you have a Mac, the more recentAcinonyx
package may be even more fun. You can zoom in and out quite easily. I recommend starting with theiplots
package as it has more documentation and a nice site.If you have a data frame with several variables, not just
node
, then being able to link the different plots such that brushing points in one plot highlights them in another will make the whole process more stimulating and efficient.That's not to say that you should ignore
hexbin
and the other ideas - those are still very useful. Be sure to check out the options for hexbin, e.g.?hexbin
.