plotcdf {Emcdf} | R Documentation |
This function plots empirical joint distribution (joint CDF) with levelplot, and 3D wireframes.
plotcdf(data, type = "levelplot", angle = 60, main = paste("Bivariate CDF of", deparse(substitute(data))))
data |
a numeric matrix / data frame of two variables. |
type |
a character spicifies plot types. Must be one of "levelplot", "wireframe", or "multiple_wireframe". |
angle |
a numeric scalar for z axis rotation. With default = 60 degrees. |
main |
a character of plot title. |
When type = "multiple_wireframe", this function plots 8 wireframes of directions 0 to what parameter angle is. This process takes longer. When type = "levelplot", parameter angle has no effect.
n = 10 set.seed(123) x = rnorm(n) y = x^2 + 0.1*rnorm(n) data = cbind(x, y) plotcdf(data, type = "multiple_wireframe")