Skip to content
Prev 25031 / 29559 Next

Add layers to a lattice plot via a for loop

Dear David,

since you have not provided us a reproductable script+dataset, I can't 
check whether my suggestion is connected to your problem. Maybe not... 
Anyway, lattice plotter functions - such as spplot() and its relatives 
-  inside for loops, functions, and tryCatch() blocks usually work in a 
different way than their line-by-line versions. Using print(spplot()) 
instead of spplot() can solve the problem.

HTH,
?kos Bede-Fazekas
Hungarian Academy of Sciences

2016.11.01. 21:54 keltez?ssel, David Wang ?rta: