[R] 2d Joint Density Plot

jim holtman jholtman at gmail.com
Mon Nov 26 23:35:51 CET 2007


Look at "levelplot" in the lattice package.

On Nov 26, 2007 5:19 PM, Josef Fruehwald <jofrhwld at gmail.com> wrote:
> Hi all,
>
> I'm fairly new to R, so I'm still trying to feel out what is available to
> me.  I would like to be able to plot joint density in a two dimensional plot
> where density is indicated by color or darkness gradients, like a 2d color
> coded topographic map.  Ideally, the output would be something I could then
> plot other points or lines on.
>
> Currently, I'm calculating joint density with the function kde2d(), and
> plotted with persp().
>
> Thanks a bunch.
>
> -Joe
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list