rpruim/mosaic — Issue #40: should we add plotModel()?
Author: rpruim
Created: 2012-02-23 16:56:13+00:00
State: open
Labels: feature

My idea is that something like this would be possible:

```R
model <- lm (y ~ x)
xyplot( y ~ x )
plotModel(model, add=TRUE)
```

This would be essentially the same as
```R
model <- lm (y ~ x)
fit <- makeFunction(model)
xyplot( y ~ x )
plotFunction(fit(x) ~ x, add=TRUE)
```

Is it worth introducing another function to save one line of code?