Plots of bivariate and trivariate continuous probability distributions.
#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)
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.
Logical, if true, produce a 3D plot.
Logical, if true, produce an isosurface plot.
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.
Optional strings, main/axes titles. Note that these depend on the barsurf package.
Optional length-2 numeric vectors, giving the plot ranges.
Logical, if true, reverse the z axis. Ignored, if zlim supplied.
Numeric vector of length one or two, giving the number of grid points in each direction.
Logical, if true, add to a previous plot. Ignored, in 3d case.
String, the (data) point color.
Other arguments for barsurf functions, refer to 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.
Refer to the vignette for an overview, references and better examples.
# NOT RUN {
prep.ph.data ()
cfh2 <- pdfmv.cks (trees2 [,-2])
plot (cfh2)
plot (cfh2, TRUE)
plot (cfh2,, TRUE)
# }
Run the code above in your browser using DataLab