简体   繁体   English

在 R 中绘制椭球概率密度

[英]Plotting Ellipsoidal Probability Density in R

I'm wondering how I can create the plots shown below:我想知道如何创建如下所示的图:

在此处输入图像描述

The plots are taken from page 7 of this paper: https://arxiv.org/pdf/1609.00046.pdf这些图取自本文第 7 页: https://arxiv.org/pdf/1609.00046.pdf

It looks like they have used some form of 3D scatter plot. I've tried playing around with the scatterplot3D function in R, but the plots don't really end up anywhere close to this.看起来他们使用了某种形式的 3D散点图plot。我试过在 R 中使用 scatterplot3D function,但这些图并没有真正接近这个。

The style of the plots can indeed be recreated using scatterplot3d :绘图的样式确实可以使用scatterplot3d重新创建:

library(scatterplot3d)

df <- data.frame(x = rnorm(10000, 5, 5),
                 y = rnorm(10000, 10, 2),
                 z = rnorm(10000, 3, 1))

scatterplot3d(df$x, df$y, df$z, box = FALSE, cex.symbols = 0.3,
              color = "#00000020", xlab = quote(Beta[1]),
              ylab = quote(Beta[2]), zlab = quote(Beta[3]))

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM