Hello everyone
I met a strange problem when I call "levelplot" in another function
>library(lattice)
>mat = matrix(1:9, nrow=3)
>mylevelplot = function() {
+ png('test.png')
+ levelplot(mat)
+ dev.off()
+}
>mylevelplot()
null device
1
the test.png file is just an regular empty file.
but in another case
>png('test.png')
>levelplot(mat)
>dev.off()
null device
1
will get a correct image file.
the first case will work correct if I replace the levelplot function by
image function in the above code.
why the first case doesn't work ?
Which I use R-1.8.1 and lattice 0.8-7
Thanks for any help.
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html