[R] 3-D plot of a bidimensional lognormal distribution

David Winsemius dwinsemius at comcast.net
Tue Jun 19 20:39:28 CEST 2012


On Jun 19, 2012, at 12:33 PM, masterpatacca wrote:

> Hi and thanks in advance to everyone who will be able to help me.
>
> I have 2 independent lognormal distributions with different means  
> and sd.

You should explain what that sentence means to you, preferably by  
offering an example in R code.

> I
> want to plot them togheter in a 3D plot.
> How can i do this??? I'm getting crazy...

persp in base and wireframe in lattice are functions that will plot 2d  
surfaces and you can calculate  2d densities with kde2d in MASS or  
bkde2D in KernSmooth.

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list