Learn R Programming

denpro (version 0.9.2)

plotvolu2d: Makes a perspective plot of a 2D volume function or a 2D probability content function

Description

Plots the output of function "shape2d"; this is a 2D volume function or a 2D probability content function.

Usage

plotvolu2d(vd, theta = NULL, phi = NULL, typer = "flat")

Arguments

vd
Output of function "shape2d"; a list containing fields x, y, z; the meaning of the fealds is the same as in the function "persp"
theta
Viewing angle (left-right); the same parameter as in "persp"
phi
Viewing angle (up-down), the same as in "persp"
typer
"flat" or "dens"; internal

Value

References

Jussi Klemela (2005). Visualization of the spread of multivariate distributions.

See Also

shape2d

Examples

Run this code
N<-c(30,30)  
lnum<-20
func<-"gumbel"
marginal<-"normal"
g<-2
ver<-3
support<-c(-ver,ver,-ver,ver)
st<-stseq(N,lnum,func=func,marginal=marginal,g=g,support=support)

gnum<-50 
ngrid=50 
vd<-shape2d(st,gnum=gnum,ngrid=ngrid) 

plotvolu2d(vd)

plotvolu2d(vd,theta=30)

Run the code above in your browser using DataLab