R, from a list create plots and save it with his name
<p>I have a list, which contains 75 matrix with their names, and I want to do a plot for each matrix, and save each plot with the name that the matrix have.
My code do the plots with a loop and it works, I get 75 correct plots, but the problem is that the name of the plot file is like a vector "c(99,86,94....)",too long and I don´t know which one is.
I´m ussing that code, probably isn´t the best. I´m a beginner, and I have been looking for a solution one week, but it was impossible. </p>

<pre><code>    for (i in ssamblist) {
  svg(paste("Corr",i,".svg", sep=""),width = 45, height = 45) 
  pairs(~CDWA+CDWM+HI+NGM2+TKW+YIELD10+GDD_EA,
        data=i,lower.panel=panel.smooth, upper.panel=panel.cor, 
        pch=0, main=i)
  dev.off()}
</code></pre>

<p>How put to a each plot his name?.
I try change "i" for names(i), but the name was the name of the first column,and only creates one plot. I try to do it with lapply but I could't.
PS: the plots are huge, and I have to expand the margins. I´m using Rstudio.
Thank you¡</p>