[R] lattice: how to add points to the plot generated by levelplot()?

2010-03-31 Thread Czerminski, Ryszard
I am using levelplot() function from pkg:lattice and I want to add some points to the plot generated by levelplot() similarly as in basic R graphic sequence: plot(...); points(...), but it does not work. I was reading documentation for lattice, but so far without much success. I would very much

Re: [R] lattice: how to add points to the plot generated by levelplot()?

2010-03-31 Thread Erik Iverson
Czerminski, Ryszard wrote: I am using levelplot() function from pkg:lattice and I want to add some points to the plot generated by levelplot() It's best to include a small example of what you have done so far, and what you want to further do. Actual R code with a small sample dataset is

Re: [R] lattice: how to add points to the plot generated by levelplot()?

2010-03-31 Thread Walmes Zeviani
You can use levelplot(runif(100)~rep(1:10, each=10)+rep(1:10, times=10)) trellis.focus(panel, 1, 1, highlight=FALSE) lpoints(runif(100,0,10), runif(100,0,10), pch=2, col=2, cex=2) trellis.unfocus() # or levelplot(runif(100)~rep(1:10, each=10)+rep(1:10, times=10),