Description Usage Arguments Details Value See Also Examples
Helper function to add heatmap colors to a perspective plot.
1 | persp_heat(z, pal = "heat", ...)
|
z |
matrix of values |
pal |
character string, one of |
... |
additional arguments passed to |
Plots a perspective plot with facets colored by z-value.
persp
plot.
1 2 3 4 5 6 7 8 | # from the persp documentation:
x <- seq(-10, 10, length= 30)
y <- x
f <- function(x, y) { r <- sqrt(x^2+y^2); 10 * sin(r)/r }
z <- outer(x, y, f)
persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = 'lightblue')
persp_heat(z, theta = 30, phi = 30, expand = 0.5)
persp_heat(z, pal='redblue', theta = 30, phi = 30, expand = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.