Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off the "Hit <Return> to see next plot" prompt plot3D?

Tags:

plot

r

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?

like image 976
Heisenberg Avatar asked Jan 13 '16 01:01

Heisenberg


2 Answers

I ran into the same problem as you did and fixed it by the following code:

par(ask=F)

I hope it will help.

like image 73
Rish Avatar answered Nov 15 '22 20:11

Rish


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
like image 6
mnr Avatar answered Nov 15 '22 19:11

mnr