Plots of bivariate and trivariate continuous probability distributions.
#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)
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, plot data points. Ignored, if in3d is true, or sf is a conditional distribution.
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.
Optional length-2 numeric vectors, giving the plot ranges.
Logical, if true, reverse the z axis. Ignored, if zlim supplied.
Logical, if true, plot a 2x2 plot array, with different subplots. Ignored, if sf is a conditional distribution.
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.
These functions call barsurf::plot_cfield, barsurf::plot_surface, plot::plot_cfield_3d.
Refer to the vignette for an overview, references and better examples.
# 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