persp_facets | R Documentation |
Compute the value at the center of facets in a perspective plot of a matrix
persp_facets(z)
z |
a numeric matrix to be used as the z argument of |
A matrix of dimensions [nrow(z)-1, ncol(z)-1]
with the values at the center of each facet
interp_scale
for an example of usage.
z <- matrix(1:12, nrow=4) persp_facets(z) # use it with persp() persp(maunga, theta=50, phi=25, scale=FALSE, expand=2, border=alpha("black", 0.4), col=interp_map(persp_facets(maunga$z), colors=terrain.colors(10)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.