Description Usage Arguments Value Author(s) See Also Examples
A panel (gui) rotate a wireframe plot and choose the best view angle.
1 | rp.wire(wire)
|
wire |
a wireframe object. |
Open a window with sliders for x
, y
and
z
. Print the dput
of the last view angle using the
button.
Walmes Zeviani, walmes@ufpr.br.
wireframe()
,
panel.3d.contour()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## Not run:
# A simple example.
library(rpanel)
library(lattice)
library(latticeExtra)
library(RColorBrewer)
colr <- brewer.pal(11, "Spectral")
colr <- colorRampPalette(colr, space = "rgb")
grid <- expand.grid(x = seq(-1, 1, by = 0.1),
y = seq(-1, 1, by = 0.1))
grid$z <- with(grid, 1 + 0.01 * x + 0.05 * y -
0.5 * x * y - 0.5 * x^2 - 0.2 * y^2)
p1 <- wireframe(z ~ x + y, data = grid,
scales = list(arrows = FALSE),
col.regions = colr(101), drape = TRUE)
p1
# Choose the better angle.
rp.wire(p1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.