extenstion to scatterplot3d package.
This is a modified version of scatterplot3.
The function scatterplot3d()
from the scatterplot3d package only plots the grid for XY-plane. sactter.grid
, extends this so you can draw the grid for YZ- and XZ- planes as well.
library(devtools)
install_github('agstudy/scattergrid')
z <- seq(-10, 10, 0.01)
x <- cos(z)
y <- sin(z)
sactter.grid(x, y, z, highlight.3d=TRUE,
col.axis="blue",
grid=c('xy','xz','yz'), ## add grid to all facets
col.grid="lightblue")