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
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
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),
3 matches
Mail list logo