I have a lot of plots named "plt\_xxxx" and I would like to plot all of them in a loop.

I tried this code but it did not work. When I run the code nothing happens, no error.

```
pltEnv <- ls()[grepl("plt_", ls())]
for(x in pltEnv){
  get(x)
}

```

When I run this code it works:

```
get(pltEnv[1])
get(pltEnv[2])
# ...

```