bivariateNormal
From HH v3.1-42
by Richard Heiberger
Plot the bivariate normal density using wireframe for specified rho.
Plot the bivariate normal density using wireframe for specified rho. There is a shiny app that allows this to be done dynamically.
Usage
bivariateNormal(rho = 0, layout = c(3, 3), lwd = 0.2,
angle = c(22.5, 67.5, 112.5, 337.5, 157.5, 292.5, 247.5, 202.5),
col.regions = trellis.par.get("regions")$col, ...)
Arguments
- rho
Correlation between $x$ and $y$.
- layout, lwd
Standard lattice arguments.
- angle
This is used as the
z
component of thescreen
argument topanel.wireframe
.- col.regions, …
See
wireframe
.
Details
The default setting shows the view as seen from a series of eight angles. To see just a single view, see the example.
Value
"trellis"
object.
Note
Based on the galaxy
example on pages 204--205 in
S \& S-PLUS Trellis Graphics User's Manual,
Richard A. Becker and William S. Cleveland (1996),
https://www.stat.auckland.ac.nz/~ihaka/courses/120/trellis.user.pdf
Examples
# NOT RUN {
bv8 <- bivariateNormal(.7) ## all views on one page
bv8
update(bv8[3], layout=c(1,1)) ## one panel
# }
# NOT RUN {
if (interactive())
shiny::runApp(file.path(system.file(package="HH"), "shiny/bivariateNormal")) ## 3D
if (interactive())
shiny::runApp(system.file("shiny/bivariateNormalScatterplot", package="HH")) ## scatterplot
# }
Community examples
Looks like there are no examples yet.