Displaying 1 result from an estimated 1 matches for "predvals".
2007 Mar 22
2
unexpected behavior of trellis calls inside a user-defined function
...aks the whole
function and one of the error messages I've gotten is:
> figFun(smoothFit1) ## no longer worked, once I got fancy with trellis
Error in depth(path) : no applicable method for "depth"
Smallest example I could construct to illustrate at least one of my
problems:
predVals <-
expand.grid(list(Sepal.Length = seq(from = min(iris$Sepal.Length),
to = max(iris$Sepal.Length), length = 50),
Petal.Length = seq(from = min(iris$Petal.Length),
to = max(iris$Petal.Length), length = 50)))
irisFit <- lm(Sepa...