Disappearing Graphics
To stop multiple graphs whizzing by, use
par(ask=TRUE)
then each graph will stay on the screen until you press the Enter key. You can pause execution to mimic a slide show effect. You need to specify the number of seconds delay that you want between each action, using the Sys.sleep function (see p. 102).
Get The R Book now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.