smoothAPC (version 0.3)

plot3d.matrix: Presents matrix as a 3D surface

Description

Presents matrix as a 3D surface

Usage

# S3 method for matrix
plot3d(x, labs = c("X", "Y", "Z"),
  color.palette = c("default", "special"), ...)

Arguments

x

Matrix to plot.

labs

Vector of labels for X, Y and Z axes.

color.palette

Character string "default" or "special" or a function accepting one argument and returning a color palette (for example rainbow).

...

Other parameters. They are currently ignored.

Examples

Run this code
# NOT RUN {
plot3d(matrix(rnorm(100),10,10))
plot3d(matrix(1:100,10,10), c("Dimension 1", "Dimension 2", "Value"))

library(demography)
m <- log(fr.mort$rate$female[1:30, 150:160])
plot3d(m)
plot3d(m, color.palette = "special")
plot3d(m, color.palette = rainbow)
# }

Run the code above in your browser using DataLab