如何使用 R 在 3D 中绘制一组密度?

发布于 2024-09-10 14:27:23 字数 645 浏览 4 评论 0原文

我需要以 3D 形式绘制与时间序列相关的一组密度。更准确地说,我希望能够在 R 中构建接近此示例的图像:

密度轨迹的 3D 透视图:来自 https://web.archive.org/web/20140801002925/https://sites.google.com /site/agenbiteofinwit/home/plotDensity3D.png

此图片取自1。透明度起着重要作用,让我们可以看到“措施”在 xy 平面上的轨迹。

任何帮助将不胜感激。

1:Juban 和 Kariniotakis,“风力发电预测的不确定性估计”,在 EWEC 2008 上的演讲 - 4 月 1 日 - 比利时布鲁塞尔。 (我无法发布链接,谷歌会帮助感兴趣的读者)。

I need to plot, in 3D, a set of densities associated to a time series. More precisely, I would like to be able in R to build an image close to this example:

a 3D perspective plot of density traces: from https://web.archive.org/web/20140801002925/https://sites.google.com/site/agenbiteofinwit/home/plotDensity3D.png

This image is taken from 1. The transparency plays an important role as let us see the trajectory of the "measures" in the x-y plane.

Any help will be greatly appreciated.

1: Juban and Kariniotakis, "Uncertainty Estimation of Wind Power Forecasts", presentation at EWEC 2008 - 01 April - Brussels, Belgium. (I can't post the link, google will help interested readers).

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

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

发布评论

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

评论(2

椒妓 2024-09-17 14:27:23

1996年,我写了一篇论文(发表在JCGS),其中的数字与此非常相似,但没有透明度。请参阅http://robjhyndman.com/papers/estimating-and-visualizing-conditional -densities/ 了解详细信息。绘图功能在 CRAN 上提供的 R 包 hdrcde 中实现。该包包含帮助文件中的一些示例。您应该能够调整我的代码以增加透明度。

In 1996 I wrote a paper (published in JCGS) with a figure very similar to that but without the transparency. See http://robjhyndman.com/papers/estimating-and-visualizing-conditional-densities/ for the details. The plotting function is implemented in the R package hdrcde available on CRAN. The package contains some examples in the help files. You should be able to adapt my code to add the transparency.

最笨的告白 2024-09-17 14:27:23

感谢罗布的提示,这就是我所取得的进展。我使用 persp() 创建一个空图,并向其中添加多边形和线条:

alt text

然而,它并不像原来的那么漂亮......:(

This is how far I got thanks to Rob's hint. I used persp() to create an empty plot and added polygons and lines to it:

alt text

However, it is not as pretty as the original one... :(

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