Deepayan:
Very nice, thanks for introducing me to a new resource. I will include the
entire, functioning example in the event others may find it useful.
--Seth
## Sample code for overlaying data points on a contour graph, using
xyplot and contourplot ##
library(lattice)
mo
Hi Seth,
An alternative would be to use ggplot2, http://had.co.nz/ggplot2:
model <- function(a,b,c,X1,X2) {
(exp(a + b*X1 + c*X2)) / (1 + exp(a + b*X1 + c*X2))
}
g <- expand.grid(X1 = seq(0.40, 0.8,0.01), X2 = seq(0.03,0.99,0.03))
a <- -37.61
b <- 34.88
c <- 28.44
g$z<- model(a, b, c, g$X1,g$
On 12/13/07, Seth W Bigelow <[EMAIL PROTECTED]> wrote:
>
> Friends: I wish to overlay data points on a contour graph. The following
> example produces a nice contour plot, but I have not mastered the concept
> of using panel functions to modify plots. Can someone show me how to
> overlay the data
Friends: I wish to overlay data points on a contour graph. The following
example produces a nice contour plot, but I have not mastered the concept
of using panel functions to modify plots. Can someone show me how to
overlay the data points (given after contour plot statement) on the
contourplot?
4 matches
Mail list logo