I have a plane in 3 dimensions, which I have graphed using the persp function. I also have some three dimensional vectors plotted in 3 dimensions using arrows3D. I would like to have the arrows and plane plotted together.
I have searched for ways to merge plots and to add arrows to plots, but I did not find anything about combining these two types of plots. Below is a MWE to produce a plane and an arrow separately.
y <- 1:5
z <- outer(x,y, function(a,b) a+b)
persp(x,y,z)
arrows3D(0,0,0,1,1,1)
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.