Re: [R] Contour plot (level curves)

2007-10-05 Thread Eric Elguero
> I have a sample of n values from a bivariate distribution (from a MCMC > procedure). How could I draw a contour plot of "the joint density" based on > that sample ? here is a fast 2D density estimator. Not very sophisticated, but works. The function assumes that data are in the form of a matrix

Re: [R] Contour plot (level curves)

2007-10-04 Thread hadley wickham
On 10/4/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Thu, 4 Oct 2007, Caio Azevedo wrote: > > > Hi all, > > > > I have a sample of n values from a bivariate distribution (from a MCMC > > procedure). How could I draw a contour plot of "the joint density" based on > > that sample ? > > You n

Re: [R] Contour plot (level curves)

2007-10-04 Thread Prof Brian Ripley
On Thu, 4 Oct 2007, Caio Azevedo wrote: > Hi all, > > I have a sample of n values from a bivariate distribution (from a MCMC > procedure). How could I draw a contour plot of "the joint density" based on > that sample ? You need to estimate the density, and contour that estimate. MASS has exampl

[R] Contour plot (level curves)

2007-10-04 Thread Caio Azevedo
Hi all, I have a sample of n values from a bivariate distribution (from a MCMC procedure). How could I draw a contour plot of "the joint density" based on that sample ? Sorry if I was not too clear. Thans in advance, Regards, Caio [[alternative HTML version deleted]]