[prev in list] [next in list] [prev in thread] [next in thread]
List: r-help
Subject: Re: [R] lattice: how to add points to the plot generated by
From: Walmes Zeviani <walmeszeviani () hotmail ! com>
Date: 2010-03-31 23:06:48
Message-ID: 1270076808927-1747499.post () n4 ! nabble ! com
[Download RAW message or body]
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),
panel=function(...){
panel.levelplot(...)
grid.points(runif(100,0,10), runif(100,0,10), pch=2)
}
)
Walmes
-----
..ooo0
...................................................................................................
..(....)... 0ooo... Walmes Zeviani
...\..(.....(.....)... Master in Statistics and Agricultural
Experimentation
....\_)..... )../.... walmeszeviani@hotmail.com, Lavras - MG, Brasil
............
(_/............................................................................................
--
View this message in context: \
http://n4.nabble.com/lattice-how-to-add-points-to-the-plot-generated-by-levelplot-tp1747260p1747499.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic