如何使用 R 在 3D 中绘制一组密度?
我需要以 3D 形式绘制与时间序列相关的一组密度。更准确地说,我希望能够在 R 中构建接近此示例的图像:
此图片取自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:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
感谢罗布的提示,这就是我所取得的进展。我使用 persp() 创建一个空图,并向其中添加多边形和线条:
然而,它并不像原来的那么漂亮......:(
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:
However, it is not as pretty as the original one... :(