使用 R 绘制大量数字,但并未显示所有数字

发布于 2024-11-29 05:09:32 字数 153 浏览 5 评论 0原文

我正在尝试使用 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.enter image description here

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盗梦空间 2024-12-06 05:09:32

正如其他人建议的那样,尝试 histhexbinplot(密度(node)),因为这些是处理比像素更多的点的标准方法。 (我喜欢使用参数 breaks = "FD" 设置 hist - 它往往比默认设置有更好的断点。)

您可能会在使用中找到一些乐趣iplots 包,一个交互式绘图包。对应的命令有ihistiplot等。由于您拥有 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 set hist with the parameter breaks = "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 include ihist, iplot, and more. As you have a Mac, the more recent Acinonyx package may be even more fun. You can zoom in and out quite easily. I recommend starting with the iplots 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文