Re: [R] Plotting Prediction Surface with persp()

2008-07-03 Thread rory . winston
Great! Thanks for the advice. Cheers Rory --Original Message-- From: Duncan Murdoch To: Rory Winston Cc: r-help@r-project.org Sent: 3 Jul 2008 05:08 Subject: Re: [R] Plotting Prediction Surface with persp() On 02/07/2008 8:47 PM, Rory Winston wrote: > Hi all > > I have a quest

Re: [R] Plotting Prediction Surface with persp()

2008-07-02 Thread Duncan Murdoch
On 02/07/2008 8:47 PM, Rory Winston wrote: Hi all I have a question about correct usage of persp(). I have a simple neural net-based XOR example, as follows: library(nnet) xor.data <- data.frame(cbind(expand.grid(c(0,1),c(0,1)), c(0,1,1,0))) names(xor.data) <- c("x","y","o") xor.nn <- nnet(o ~

[R] Plotting Prediction Surface with persp()

2008-07-02 Thread Rory Winston
Hi all I have a question about correct usage of persp(). I have a simple neural net-based XOR example, as follows: library(nnet) xor.data <- data.frame(cbind(expand.grid(c(0,1),c(0,1)), c(0,1,1,0))) names(xor.data) <- c("x","y","o") xor.nn <- nnet(o ~ x + y, data=xor.data, linout=FALSE, size=1)