Re: [R] plot vs curve

2007-09-12 Thread Duncan Murdoch
Christian Ritz wrote: > Dear list members, > > is it intentional that: > > > curve(cos, xlim = c(-5, 5)) > plot(cos, xlim = c(-5, 5)) > > > produce different plots? > > Shouldn't the 'xlim' argument in both cases set the 'from' and 'to' argument > if they > aren't supplied (at least that's what I

[R] plot vs curve

2007-09-12 Thread Christian Ritz
Dear list members, is it intentional that: curve(cos, xlim = c(-5, 5)) plot(cos, xlim = c(-5, 5)) produce different plots? Shouldn't the 'xlim' argument in both cases set the 'from' and 'to' argument if they aren't supplied (at least that's what I understood reading the help page for 'curv