简体   繁体   English

在R中3D轴的2D平面中的绘图线

[英]Plot line that lies in a 2D plane in 3D axes in R

I would like to make the following plot in R. It is just a normal density sitting upright. 我想在R中进行以下绘制。这只是一个垂直放置的正常密度。

3D轴中的2D线

You want to use the scatterplot3d package 您要使用scatterplot3d软件包

library(scatterplot3d)

d <- rnorm(10000)
y <- density(d)$y
x <- density(d)$x
z <- rep(0, length(x))
scatterplot3d(x=x, y=z, z=y, type="l")

在此处输入图片说明

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

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