Displaying 1 result from an estimated 1 matches for "confusion3".
Did you mean:
confusion
2009 Dec 14
0
Confused on using expand.grid(), array(), image() and npudens(np) in my case
...0.02) #length is 51
y.seq <- seq(0,1,0.02) #length is 51
#Confusion2:what is the correct sequence for the three variables
(year.seq,x.seq and y.seq) in expand.grid()
data.eval <- expand.grid(tf=year.seq,x=x.seq,y=y.seq) #confusion2
fhat <- fitted(npudens(bws=bw, newdata=data.eval))
#Confusion3:what is the correct sequence for the three variables in the c()
options of array()
f <- array(fhat, c(51,51,3)) #number of year.seq is 3, and number of x.seq
and y.seq are 51,confusion3
brks <- quantile(f, seq(0,1,0.05));cols <-
heat.colors(length(brks)-1);oldpar <- par(mfrow=c(1,3))...