Displaying 1 result from an estimated 1 matches for "predsurf".
Did you mean:
freesurf
2007 Mar 22
2
unexpected behavior of trellis calls inside a user-defined function
...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(Sepal.Width ~ Sepal.Length * Petal.Length, data = iris)
predSurf <- data.frame(predVals, Sepal.Width = predict(irisFit,
predVals))
trellis.device("X11",width = 8, height = 8)
levelplot(Sepal.Width ~ Sepal.Length * Petal.Length,
predSurf, main = "Produced at command line, Take 1")
# put levelplot call inside a function
myFunc...