When using persp3D
in package plot3D
, there's only one plot produced but I still have to respond to the "Hit <Return> to see next plot" prompt. Is there a way to turn it off?
More generally, when there are multiple plots, do packages typically provide a way to specify a particular plot to show, similar to the which = c(1:3, 5)
argument in plot.lm
?
I ran into the same problem as you did and fixed it by the following code:
par(ask=F)
I hope it will help.
At some point, par(ask = F) was deprecated in favor of devAskNewPage.
In my copy of R 3.5.1, the following code plots without asking...
devAskNewPage(ask = FALSE)
# plot command here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With