Learn R Programming

probhat (version 0.3.1)

53_cmv_plotting_functions: Plots of Continuous Multivariate Models

Description

Plots of bivariate and trivariate continuous probability distributions.

Usage

#calls barsurf::plot_cfield or barsurf::plot_surface
plot_cpd_bv (sf, in3d=FALSE, data=FALSE, …, all=FALSE, n=30,
    main, xlab, ylab,
    xlim, ylim, zlim)

#calls barsurf::plot_cfield_3d plot_cpd_tv (sf, …, main, xlab, ylab, zlab, xlim, ylim, zlim, reverse.z=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.

data

Logical, if true, plot data points. Ignored, if in3d is true, or sf is a conditional distribution.

main, xlab, ylab, zlab

Optional strings, main/axes titles. Note that these depend on the barsurf package. And at the time of writing (with barsurf version 0.5.0), zlab is not supported.

xlim, ylim, zlim

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

reverse.z

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

all

Logical, if true, plot a 2x2 plot array, with different subplots. Ignored, if sf is a conditional distribution.

n

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

Other arguments for barsurf::plot_cfield, barsurf::plot_surface, plot::plot_cfield_3d.

Details

These functions call barsurf::plot_cfield, barsurf::plot_surface, plot::plot_cfield_3d.

References

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

See Also

set.ph.options

plot_cpd

plot.cksmv

Examples

Run this code
# NOT RUN {
ph.data.prep ()

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

plot (cfh2)
plot (cfh2, TRUE)
plot (cfh2,, TRUE)
plot (cfh2, all=TRUE)

plot (cfh3)
# }

Run the code above in your browser using DataLab