52_cmv_plotting_functions: Plots of Continuous Multivariate Models

Description Usage Arguments Details References See Also Examples

Description

Plots of bivariate and trivariate continuous probability distributions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#calls barsurf::plot_cfield or barsurf::plot_surface
plot_cpd_bv (sf, in3d=FALSE, data, ..., n=30,
    main, xlab, ylab, zlab,
    xlim, ylim, zlim,
    add=FALSE, point.color)

#calls barsurf::plot_cfield_3d
plot_cpd_tv (sf, iso=FALSE, ...,
    main, xlab, ylab, zlab,
    xlim, ylim, zlim,
    z.reverse=FALSE)

Arguments

sf

A suitable function object.
Here, this is a continuous multivariate probability distribution, with two or three random variables.

Refer to the references and see also sections.

in3d

Logical, if true, produce a 3D plot.

iso

Logical, if true, produce an isosurface plot.

data

Logical, if true, plot data points.
Ignored, if in3d or add is true, or sf is a conditional distribution.
Defaults to true, if the number of observations is not more than 2000.

main, xlab, ylab, zlab

Optional strings, main/axes titles.

Note that these depend on the barsurf package.

xlim, ylim, zlim

Optional length-2 numeric vectors, giving the plot ranges.

z.reverse

Logical, if true, reverse the z axis.
Ignored, if zlim supplied.

n

Numeric vector of length one or two, giving the number of grid points in each direction.

add

Logical, if true, add to a previous plot.
Ignored, in 3d case.

point.color

String, the (data) point color.

...

Other arguments for barsurf functions, refer to details.

Details

These functions call barsurf::plot_cfield, barsurf::plot_surface, barsurf::plotf_cfield_3d and barsurf::plotf_isosurface.

There are some private intermediate functions, that change some of the defaults.
Note that by default, more detail is used in bivariate CDFs than bivariate PDFs.

References

Refer to the vignette for an overview, references and better examples.

See Also

set.ph.options

plot_cpd

ph.plotf.cksmv

Examples

1
2
3
4
5
6
7
prep.ph.data ()

cfh2 <- pdfmv.cks (trees2 [,-2])

plot (cfh2)
plot (cfh2, TRUE)
plot (cfh2,, TRUE)

probhat documentation built on May 12, 2021, 5:08 p.m.