Skip to content
Prev 240024 / 398500 Next

using dimnames as main when plotting with lapply

On 01.11.2010 11:38, Henrik P?rn wrote:
x in your anomymous function does not have any dimnames (since it it the 
corresponding element of tmp. Hence go with a loop or use
  lapply(seq_along(tmp), function(x) plot(tmp[[x]], main = names(tmp[x])))

Uwe Ligges