I would like to make the following plot in R. It is just a normal density sitting upright.
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")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.