0

I want to do some preliminary data analysis by looking at plots of each column in a data frame. I want each column to be plotted separately, and I want to be able to toggle to the next column when I'm ready.

I tried:

graphics.off()
for (i in 2:251){
  stocks[,i]
{
  plot(stocks[,i])
}}

....however, this results in a really fast slide show, so I don't have time to look at each plot separately.

lever
  • 664
  • 1
  • 5
  • 10

1 Answers1

0

How about:

graphics.off()
for (i in 2:251){
  stocks[,i]
{
  plot(stocks[,i])
  n <- readline("press enter to move: ")
}}
Troy
  • 8,581
  • 29
  • 32