PDF_3dPlot {MDBED}R Documentation

3D plot of the joint PDF of the bivariate exponential distribution (BED) based on the Moran-Downton model

Description

This function builds a 3D plot of the joint PDF of the BED. The required inputs are the correlation coefficient and the scale parameters of the marginal distributions. This function also allows several characteristics of the plot to be set.

Usage

PDF_3dPlot(
  rho,
  Betax,
  Betay,
  xlabel = "x",
  ylabel = "y",
  zlabel = "Joint PDF",
  title = "BED",
  angle = -35,
  GS = 0.5
)

Arguments

rho

Correlation coefficient between the marginals distributions of and y.

Betax

Scale parameter of the marginal distribution of x.

Betay

Scale parameter of the marginal distribution of y.

xlabel

Label of the x-axis.

ylabel

Label of the y-axis.

zlabel

Label of the z-axis.

title

Title of the figure.

angle

Angle of the 3D projection.

GS

Grid spacing; value between 0 and 1 (Default value 0.5)

Details

Based on the function persp of the graphics package.

Value

A 3D plot of the joint PDF of the BED is provided.

Author(s)

Luis F. Duque <lfduquey@gmail.com> <l.f.duque-yaguache2@newcastle.ac.uk>

Examples

PDF_3dPlot(rho=0.85,Betax=1,Betay=1)

[Package MDBED version 1.0.0 Index]