title: How to use different parameters based on a vector for each iteration of lapply?
body: <p>I have a list of vectors for which I am <em>lapplying</em> the function <code>lines</code> to plot the content of each of the elements in the list. Example code following:</p>
  
  <pre><code>l &lt;- list()
  for(i in 1:10){l[[i]] &lt;- rnorm(10)}
  plot(l[[1]], t='n')
  lapply(l, lines)
  </code></pre>
  
  <p>Is there a way of telling <code>lapply</code> that for each element use a different parameter, for instance, color or line type, so I can easily attribute the corresponding features I want to each element of the list? For instance, I'd like to have a vector of colors that match a particular element on the list.</p>