I see. I typically use a (one-sided) formula as the first argument to Ecdf,
but didn't even think about that distinction in putting together this
example.

Thanks again for your help.

- Elliot

On Tue, Jul 31, 2012 at 12:46 PM, Deepayan Sarkar <deepayan.sarkar@gmail.com
> wrote:

> On Tue, Jul 31, 2012 at 6:43 PM, Elliot Joel Bernstein
> <elliot.bernstein@fdopartners.com> wrote:
>
> > Thanks everyone for your replies. I didn't know about the ecdfplot
> function,
> > so I'll start using that instead of Ecdf. Why is Ecdf not a lattice plot?
> > The result certainly looks like other lattice plots, the arguments are
> > similar to other lattice plots. In fact, internally it seems to just call
> > the "histogram" function with a different prepanel and panel function.
> Is it
> > not considered a lattice plot only because it isn't part of the lattice
> > package?
>
> Of course not. What you are saying is a valid description of the
> Ecdf.formula() method, which definitely produces a lattice plot (or
> trellis plot if you prefer). However, the example you gave, namely,
>
> x <- rnorm(1e6)
> Ecdf(x)
>
> ends up calling Ecdf.default(), which is very much a traditional
> graphics function. I should add that this is for Hmisc 3.9-2, and
> don't know if the behaviour is different with other versions.
>
> Note that Ecdf() has more features than ecdfplot(), in particular it
> allows weights.
>
> -Deepayan
>



-- 
Elliot Joel Bernstein, Ph.D. | Research Associate | FDO Partners, LLC
134 Mount Auburn Street | Cambridge, MA | 02138
Phone: (617) 503-4619 | Email: elliot.bernstein@fdopartners.com

	[[alternative HTML version deleted]]

