plot3d.matrix: Presents matrix as a 3D surface

Description Usage Arguments Author(s) Examples

View source: R/show.R

Description

Presents matrix as a 3D surface

Usage

1
2
3
## S3 method for class '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.

Author(s)

Alexander Dokumentov

Examples

1
2
3
4
5
6
7
8
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)

smoothAPC documentation built on May 2, 2019, 10:15 a.m.