[R] termplot and ylim

2006-07-15 Thread Andreas Beyerlein
Hi together, I always get an error message with using ylim in termplot(), like this: x-(1:10) y-(10:1) l-lm(y~x) termplot(l,ylim=c(1,2)) Is this a bug, or is there another possibility to do that? Especially, I would like to use term.plot() for gamlss objects. Thanks for your help! Andreas

Re: [R] termplot and ylim

2006-07-15 Thread Gabor Grothendieck
It looks like a bug or at least an omission. Try the following. It creates a new termplot function which in turn defines a plot function which looks for a ylims= arg and, if present, replaces the ylim= arg with ylims= and then calls the real plot from the graphics package with the new set of